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


PHP DataManager::paginate方法代码示例

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


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

示例1: paginate

 /**
 * This function will return paginated result. Result is an array where first element is 
 * array of returned object and second populated pagination object that can be used for 
 * obtaining and rendering pagination data using various helpers.
 * 
 * Items and pagination array vars are indexed with 0 for items and 1 for pagination
 * because you can't use associative indexing with list() construct
 *
 * @access public
 * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
 * @param integer $items_per_page Number of items per page
 * @param integer $current_page Current page number
 * @return array
 */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1) {
   if(isset($this) && instance_of($this, 'SearchableObjects')) {
     return parent::paginate($arguments, $items_per_page, $current_page);
   } else {
     return SearchableObjects::instance()->paginate($arguments, $items_per_page, $current_page);
   } // if
 } // paginate
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:21,代码来源:BaseSearchableObjects.class.php

示例2: paginate

 /**
  * Return paginated result
  * 
  * This function will return paginated result as array. First element of 
  * returned array is array of items that match the request. Second parameter 
  * is Pager class instance that holds pagination data (total pages, current 
  * and next page and so on)
  *
  * @param array $arguments
  * @param integer $page
  * @param integer $per_page
  * @return array
  * @throws DBQueryError
  */
 function paginate($arguments = null, $page = 1, $per_page = 10)
 {
     return DataManager::paginate($arguments, $page, $per_page, TABLE_PREFIX . 'incoming_mailboxes', 'IncomingMailbox');
 }
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:18,代码来源:BaseIncomingMailboxes.class.php

示例3: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'ProjectChartParams')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return ProjectChartParams::instance()->paginate($arguments, $items_per_page, $current_page);
         //$instance =& ProjectChartParams::instance();
         //return $instance->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:25,代码来源:BaseProjectChartParams.class.php

示例4: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'UserWsConfigOptionValues')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return UserWsConfigOptionValues::instance()->paginate($arguments, $items_per_page, $current_page);
         //$instance =& ConfigOptions::instance();
         //return $instance->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:25,代码来源:BaseUserWsConfigOptionValues.class.php

示例5: paginate

 /**
 * This function will return paginated result. Result is an array where first element is 
 * array of returned object and second populated pagination object that can be used for 
 * obtaining and rendering pagination data using various helpers.
 * 
 * Items and pagination array vars are indexed with 0 for items and 1 for pagination
 * because you can't use associative indexing with list() construct
 *
 * @access public
 * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
 * @param integer $items_per_page Number of items per page
 * @param integer $current_page Current page number
 * @return array
 */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1) {
   if(isset($this) && instance_of($this, 'ReportConditions')) {
     return parent::paginate($arguments, $items_per_page, $current_page);
   } else {
     return  ReportConditions::instance()->paginate($arguments, $items_per_page, $current_page);
   } // if
 } // paginate
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:21,代码来源:BaseReportConditions.class.php

示例6: paginate

 /**
  * This function will return paginated result. Result is an array where first element is
  * array of returned object and second populated pagination object that can be used for
  * obtaining and rendering pagination data using various helpers.
  *
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'ExternalCalendarUsers')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return ExternalCalendarUsers::instance()->paginate($arguments, $items_per_page, $current_page);
         //$instance =& MailAccounts::instance();
         //return $instance->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:25,代码来源:BaseExternalCalendarUsers.class.php

示例7: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'RoleObjectTypePermissions')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return RoleObjectTypePermissions::instance()->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:rorteg,项目名称:fengoffice,代码行数:23,代码来源:BaseRoleObjectTypePermissions.class.php

示例8: paginate

 /**
 * This function will return paginated result. Result is an array where first element is 
 * array of returned object and second populated pagination object that can be used for 
 * obtaining and rendering pagination data using various helpers.
 * 
 * Items and pagination array vars are indexed with 0 for items and 1 for pagination
 * because you can't use associative indexing with list() construct
 *
 * @access public
 * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
 * @param integer $items_per_page Number of items per page
 * @param integer $current_page Current page number
 * @return array
 */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1) {
   if(isset($this) && instance_of($this, 'CustomPropertiesByCoType')) {
     return parent::paginate($arguments, $items_per_page, $current_page);
   } else {
     return  CustomPropertiesByCoType::instance()->paginate($arguments, $items_per_page, $current_page);
   } // if
 } // paginate
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:21,代码来源:BaseCustomPropertiesByCoType.class.php

示例9: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'I18nLocaleValues')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return I18NLocaleValues::instance()->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:23,代码来源:BaseI18nLocaleValues.class.php

示例10: paginate

 /**
  * This function will return paginated result. Result is an array where first element is
  * array of returned object and second populated pagination object that can be used for
  * obtaining and rendering pagination data using various helpers.
  *
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1, $count = null)
 {
     if (isset($this) && instance_of($this, 'MailDatas')) {
         return parent::paginate($arguments, $items_per_page, $current_page, $count);
     } else {
         return MailDatas::instance()->paginate($arguments, $items_per_page, $current_page, $count);
         //$instance =& MailDatas::instance();
         //return $instance->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:25,代码来源:BaseMailDatas.class.php

示例11: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'ContactConfigOptionValues')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return ContactConfigOptionValues::instance()->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:23,代码来源:BaseContactConfigOptionValues.class.php

示例12: paginate

 /**
 * This function will return paginated result. Result is an array where first element is 
 * array of returned object and second populated pagination object that can be used for 
 * obtaining and rendering pagination data using various helpers.
 * 
 * Items and pagination array vars are indexed with 0 for items and 1 for pagination
 * because you can't use associative indexing with list() construct
 *
 * @access public
 * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
 * @param integer $items_per_page Number of items per page
 * @param integer $current_page Current page number
 * @return array
 */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1) {
   if(isset($this) && instance_of($this, 'ContactDimensionPermissions')) {
     return parent::paginate($arguments, $items_per_page, $current_page);
   } else {
     return ContactDimensionPermissions::instance()->paginate($arguments, $items_per_page, $current_page);
   } // if
 } // paginate
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:21,代码来源:BaseContactDimensionPermissions.class.php

示例13: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'WorkspaceBillings')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return WorkspaceBillings::instance()->paginate($arguments, $items_per_page, $current_page);
         //$instance =& WorkspaceBillings::instance();
         //return $instance->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:25,代码来源:BaseWorkspaceBillings.class.php

示例14: paginate

 /**
 * This function will return paginated result. Result is an array where first element is 
 * array of returned object and second populated pagination object that can be used for 
 * obtaining and rendering pagination data using various helpers.
 * 
 * Items and pagination array vars are indexed with 0 for items and 1 for pagination
 * because you can't use associative indexing with list() construct
 *
 * @access public
 * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
 * @param integer $items_per_page Number of items per page
 * @param integer $current_page Current page number
 * @return array
 */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1) {
   if(isset($this) && instance_of($this, 'DimensionObjectTypeHierarchies')) {
     return parent::paginate($arguments, $items_per_page, $current_page);
   } else {
     return DimensionObjectTypeHierarchies::instance()->paginate($arguments, $items_per_page, $current_page);
   } // if
 } // paginate
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:21,代码来源:BaseDimensionObjectTypeHierarchies.class.php

示例15: paginate

 /**
  * This function will return paginated result. Result is an array where first element is 
  * array of returned object and second populated pagination object that can be used for 
  * obtaining and rendering pagination data using various helpers.
  * 
  * Items and pagination array vars are indexed with 0 for items and 1 for pagination
  * because you can't use associative indexing with list() construct
  *
  * @access public
  * @param array $arguments Query argumens (@see find()) Limit and offset are ignored!
  * @param integer $items_per_page Number of items per page
  * @param integer $current_page Current page number
  * @return array
  */
 function paginate($arguments = null, $items_per_page = 10, $current_page = 1)
 {
     if (isset($this) && instance_of($this, 'MemberPropertyMembers')) {
         return parent::paginate($arguments, $items_per_page, $current_page);
     } else {
         return MemberPropertyMembers::instance()->paginate($arguments, $items_per_page, $current_page);
     }
     // if
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:23,代码来源:BaseMemberPropertyMembers.class.php


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