mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-09 05:14:29 -06:00
25 lines
579 B
PHP
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]);
|
|
}
|
|
}
|