mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-09 23:34:30 -06:00
25 lines
591 B
PHP
25 lines
591 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Description of AttributeModel
|
||
|
*
|
||
|
* @author Mike Howard
|
||
|
*/
|
||
|
|
||
|
require_once PD . "/Model/Database.php";
|
||
|
require_once PD . "/Model/ModelTraits.php";
|
||
|
|
||
|
class AttributeModel {
|
||
|
use ModelTraits;
|
||
|
|
||
|
public function findAllAttributes()
|
||
|
{
|
||
|
return $this->processQuery("SELECT * FROM loyalty_attribute ORDER BY loyalty_attribute_id ASC LIMIT ?", ["i", $this->limit]);
|
||
|
}
|
||
|
|
||
|
public function findAttributesByMemberId()
|
||
|
{
|
||
|
return $this->processQuery("SELECT * FROM loyalty_member_view WHERE loyalty_member_id = ?", ["i", $this->memberId]);
|
||
|
}
|
||
|
}
|