本文整理汇总了PHP中Zend_Db_Select::limitPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Db_Select::limitPage方法的具体用法?PHP Zend_Db_Select::limitPage怎么用?PHP Zend_Db_Select::limitPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Db_Select
的用法示例。
在下文中一共展示了Zend_Db_Select::limitPage方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: next
/**
* This returns the next chunk of database result objects.
*
* @return array|null Set of Omeka_Record instances, or null if none can be
* found.
* @author Eric Rochester <erochest@virginia.edu>
**/
public function next()
{
$this->pageNumber++;
$this->select->limitPage($this->pageNumber, $this->rowCount);
$rows = $this->table->fetchObjects($this->select, $this->params);
return $rows;
}
示例2: _renderLimit
/**
* Render sql select limit
*
* @return Varien_Data_Collection_Db
*/
protected function _renderLimit()
{
if ($this->_pageSize) {
$this->_select->limitPage($this->getCurPage(), $this->_pageSize);
}
return $this;
}
示例3: applyPagination
/**
* Apply pagination to a select object via the LIMIT and OFFSET clauses.
*
* @param Zend_Db_Select $select
* @param integer $limit Number of results per "page".
* @param integer|null $page Page to retrieve, first if omitted.
* @return Zend_Db_Select
*/
public function applyPagination($select, $limit, $page = null)
{
if ($page) {
$select->limitPage($page, $limit);
} else {
$select->limit($limit);
}
return $select;
}
示例4: limitPage
/**
* @return WeFlex_Db_Model
*/
public function limitPage($page, $rowCount)
{
$this->_selector->limitPage($page, $rowCount);
return $this;
}