Exemplo n.º 1
0
 public function __construct($data = null)
 {
     $tables = array_keys($this->table_defs);
     $tableName = $tables[0];
     $this->table_name = $tableName;
     $this->table_columns = $this->table_defs[$tableName];
     unset($this->table_defs);
     parent::__construct($data);
 }
Exemplo n.º 2
0
 public function attribs($info = null, $force = null)
 {
     $info = parent::attribs($info, $force);
     $info['fullname'] = "{$info['firstname']} {$info['lastname']}";
     return $info;
 }