Exemplo n.º 1
0
 /**
  * Selects Models from the database with a partial SQL statement.
  * 
  * @param string $where WHERE-part of the SQL statement.
  * @param array $prms Arguments used in $where
  * @return array Array of <Model> datasets
  */
 public function Find($where = "", $prms = array())
 {
     $sql = "SELECT * FROM " . $this->GetTableName() . ($where ? " WHERE {$where}" : "");
     $q = new SelectQuery($this, $this->_ds);
     return $q->__execute($sql, $prms);
 }