當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。