CustomerRewardsRESTAPI/Model/AttributeModel.php
2024-05-22 14:55:08 -05:00

25 lines
579 B
PHP

<?php
/**
* Description of AttributeModel
*
* @author Mike Howard
*/
require_once PD . "/Model/Database.php";
require_once PD . "/Model/ModelTraits.php";
class AttributeModel extends Database {
use ModelTraits;
public function findAllAttributes()
{
return $this->processQuery("SELECT * FROM loyalty_attribute ORDER BY loyalty_attribute_id ASC");
}
public function findAttributesByMemberId()
{
return $this->processQuery("SELECT * FROM loyalty_member_view WHERE loyalty_member_id = ?", ["i", $this->memberId]);
}
}