Esempio n. 1
0
 /**
  * Select single row by id.
  * @param int $id
  * @return array
  */
 public function Select($id)
 {
     $this->params = array('where' => array('conditions' => 'id=?', 'arguments' => $id));
     if ($this->_validate_select()) {
         $this->_before_select();
         $result = $this->table->Select($id);
         $this->_on_select();
     }
     return $result;
 }