本文整理汇总了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
示例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');
}
示例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
}
示例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
}
示例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
示例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
}
示例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
}
示例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
示例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
}
示例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
}
示例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
}
示例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
示例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
}
示例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
示例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
}