/** * Select list of rows. * @param array $arg * @return array */ public function SelectList($arg = array()) { /** * Set query parameters. */ if (is_string($arg)) { $this->params = array('where' => array('conditions' => $arg)); } else { if (!is_array($arg)) { $this->params = array(); } else { $this->params = $arg; } } if ($this->_validate_select()) { $this->_before_select(); $result = $this->table->SelectList($this->params); $this->_on_select(); } return $result; }