コード例 #1
0
ファイル: Record.php プロジェクト: Ekhvalov/recordsman
 /**
  * Finds records by passed conditions, and returns RecordSet
  *
  * If called without parameters, returns all record in RecordSet
  *
  * @param array|string|Condition $condition Instance of Condition or something that can be reduced to Condition
  * (see Condition class description)
  * @param array|string $order String, containing field name to ascending ordering,
  * or array like ['title' => 'ASC', 'price' => 'DESC']
  * @param array|int $limit Integer value for limiting, or array like [10, 20]
  * @return RecordSet
  */
 public static function find($condition = null, $order = null, $limit = null)
 {
     $qualifiedName = Helper::qualifyClassName(get_called_class());
     return RecordSet::create($qualifiedName, $condition, $order, $limit);
 }