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(); }
function fetchPhoneJSON() { $this->setSort('userMetas.sort'); // $this->db->select('clientMetaID as entityID'); $this->schemaName = 'phone'; $result = parent::fetch(); return json_encode($result); }
private function getOne() { $this->db->select('clients.*'); $this->db->join('clients', 'clientID = clientsID', 'left outer'); return reset(parent::fetch()); }
function fetchJSON() { $result = parent::fetch(); return json_encode($result); }
function fetch() { $this->setSort('metas.sort'); $this->setSort('metas.schemaName'); return parent::fetch(); }
function fetch() { $this->setSort('page_uri'); return parent::fetch(); }
function fetch() { $this->setSort('createdAt DESC'); return parent::fetch(); }
function fetch() { $this->setSort('lastName, firstName'); return parent::fetch(); }