CustomerRewardsRESTAPI/Model/AttributeModel.php

25 lines
579 B
PHP
Raw Normal View History

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