예제 #1
0
파일: m_emails.php 프로젝트: nqpp/dstore
 function fetch()
 {
     $this->setSort('createdAt DESC');
     $this->db->select("DATE_FORMAT(`createdAt`,'%e %b %Y') as 'createdDate'", false);
     $this->db->select("DATE_FORMAT(`sentAt`,'%e %b %Y') as 'sentDate'", false);
     return parent::fetch();
 }
예제 #2
0
 function fetchPhoneJSON()
 {
     $this->setSort('userMetas.sort');
     //	$this->db->select('clientMetaID as entityID');
     $this->schemaName = 'phone';
     $result = parent::fetch();
     return json_encode($result);
 }
예제 #3
0
 private function getOne()
 {
     $this->db->select('clients.*');
     $this->db->join('clients', 'clientID = clientsID', 'left outer');
     return reset(parent::fetch());
 }
예제 #4
0
파일: m_clients.php 프로젝트: nqpp/dstore
 function fetchJSON()
 {
     $result = parent::fetch();
     return json_encode($result);
 }
예제 #5
0
파일: m_metas.php 프로젝트: nqpp/dstore
 function fetch()
 {
     $this->setSort('metas.sort');
     $this->setSort('metas.schemaName');
     return parent::fetch();
 }
예제 #6
0
 function fetch()
 {
     $this->setSort('page_uri');
     return parent::fetch();
 }
예제 #7
0
파일: m_orders.php 프로젝트: nqpp/dstore
 function fetch()
 {
     $this->setSort('createdAt DESC');
     return parent::fetch();
 }
예제 #8
0
파일: m_users.php 프로젝트: nqpp/dstore
 function fetch()
 {
     $this->setSort('lastName, firstName');
     return parent::fetch();
 }