当前位置: 首页>>代码示例>>PHP>>正文


PHP CActiveDataProvider::fetchData方法代码示例

本文整理汇总了PHP中CActiveDataProvider::fetchData方法的典型用法代码示例。如果您正苦于以下问题:PHP CActiveDataProvider::fetchData方法的具体用法?PHP CActiveDataProvider::fetchData怎么用?PHP CActiveDataProvider::fetchData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CActiveDataProvider的用法示例。


在下文中一共展示了CActiveDataProvider::fetchData方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fetchData

 protected function fetchData()
 {
     if (!is_null($this->_cache_duration)) {
         $this->model = $this->model->cache($this->_cache_duration, $this->_cache_dependency, 2);
     }
     return parent::fetchData();
 }
开发者ID:rusli-nasir,项目名称:ERP_Accounting_Indonesia,代码行数:7,代码来源:EActiveDataProviderEx.php

示例2: fetchData

 /**
  * Fetches the data from the persistent data storage.
  * @return array list of data items
  */
 protected function fetchData()
 {
     $data = parent::fetchData();
     foreach ($data as $model) {
         $this->_authorizer->attachUserBehavior($model);
     }
     return $data;
 }
开发者ID:eco-systems,项目名称:eclearance,代码行数:12,代码来源:RAssignmentDataProvider.php

示例3: fetchData

 /**
  * Fetches the data from the persistent data storage.
  * @return array list of data items
  */
 public function fetchData()
 {
     $data = parent::fetchData();
     if ($this->_behaviors !== array()) {
         foreach ($data as $model) {
             $model->attachBehaviors($this->_behaviors);
         }
     }
     return $data;
 }
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:14,代码来源:RightsActiveDataProvider.php

示例4: fetchData

 /**
  * Fetches the data from the persistent data storage.
  *
  * @return array list of data items
  */
 protected function fetchData()
 {
     $sourceCriteria = clone $this->getCriteria();
     $criteria = $this->getCriteria();
     if (($alphapagination = $this->getAlphaPagination()) !== false) {
         $alphapagination->applyCondition($criteria);
     }
     $result = parent::fetchData();
     $this->setCriteria($sourceCriteria);
     return $result;
 }
开发者ID:hansenmakangiras,项目名称:disperindag,代码行数:16,代码来源:ApActiveDataProvider.php

示例5: fetchData

 /**
  * Fetches the data from the persistent data storage.
  * Additionally, calls KeenActiveDataProvider::afterFetch method
  * @return array list of data items
  */
 protected function fetchData()
 {
     if ($this->_withKeenLoading) {
         $this->_prepareKeenLoading();
     }
     $data = parent::fetchData();
     if ($data && $this->_withKeenLoading) {
         $data = $this->afterFetch($data);
     }
     return $data;
 }
开发者ID:kuzmina-mariya,项目名称:gallery,代码行数:16,代码来源:KeenActiveDataProvider.php


注:本文中的CActiveDataProvider::fetchData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。