コード例 #1
0
ファイル: SoftModel.php プロジェクト: yutin1987/phalpro
 /**
  * model find
  * 
  * @param object $parameters parameters
  * 
  * @return array
  */
 public static function find($parameters = null)
 {
     $data = [];
     $temp = parent::find($parameters);
     foreach ($temp as $row) {
         $data[] = $row;
     }
     return $data;
 }
コード例 #2
0
ファイル: UiMenus.php プロジェクト: abc2001x/phalcon_mode
 public static function find($parameters = null)
 {
     // Create an unique key based on the parameters
     if (!is_array($parameters) || !array_key_exists('cache', $parameters)) {
         if (is_array($parameters)) {
             $parameters['cache'] = array("key" => __CLASS__ . self::_createKey($parameters), "lifetime" => 3600);
         } else {
             $parameters = [$parameters, 'cache' => ["key" => __CLASS__ . self::_createKey($parameters), "lifetime" => 3600]];
         }
     }
     return parent::find($parameters);
 }
コード例 #3
0
ファイル: Model.php プロジェクト: tashik/phalcon_core
 /**
  * Allows to query a set of records that match the specified conditions
  *
  * @param 	array $parameters
  * @return  \Phalcon\Mvc\Model\ResultsetInterface
  */
 public static function find($parameters = null)
 {
     if (!static::$_conditions) {
         return parent::find($parameters);
     }
     $conditions = static::normalizeConditions(static::$_conditions);
     if (!$parameters) {
         return parent::find($conditions);
     }
     if (is_string($parameters)) {
         $parameters .= " AND " . $conditions;
     } else {
         $parameters[0] .= " AND " . $conditions;
     }
     return parent::find($parameters);
 }
コード例 #4
0
ファイル: Questions.php プロジェクト: nhannv56/hoctap
 /**
  * Allows to query a set of records that match the specified conditions
  *
  * @param mixed $parameters        	
  * @return Questions[]
  */
 public static function find($parameters = null)
 {
     return parent::find($parameters);
 }
コード例 #5
0
 /**
  * @return User[]
  */
 public static function find($parameters = array())
 {
     return parent::find($parameters);
 }
コード例 #6
0
ファイル: UserView.php プロジェクト: OwLoop/Fresh
 public static function find($parameters = null)
 {
     return parent::find(self::$needGet);
 }
コード例 #7
0
ファイル: ConsignmentView.php プロジェクト: OwLoop/Fresh
 public static function find($parameters = null)
 {
     $needFind = array_merge($parameters, self::$needGet);
     return parent::find($needFind);
 }
コード例 #8
0
ファイル: Posts.php プロジェクト: devsnippet/city_site
 public static function find($parameters = NULL)
 {
     $results = parent::find($parameters = NULL);
     foreach ($results as $result) {
         $_oldTags = $result->tags;
     }
     return $results;
 }
コード例 #9
0
ファイル: Model.php プロジェクト: UqiOnline/cphalcon7
 public static function find($parameters = null)
 {
     $parameters = self::getCacheableParams($parameters);
     return parent::find($parameters);
 }
コード例 #10
0
ファイル: ModelBase.php プロジェクト: denners777/api-phalcon
 public static function find($parameters = null)
 {
     $parameters = self::softDeleteFetch($parameters);
     return parent::find($parameters);
 }