本文整理汇总了PHP中JPagination::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JPagination::__construct方法的具体用法?PHP JPagination::__construct怎么用?PHP JPagination::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JPagination
的用法示例。
在下文中一共展示了JPagination::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct(XiptModel &$model)
{
$limit = null;
$limitstart = null;
$this->initDefaultStates($model, $limit, $limitstart);
return parent::__construct($model->getTotal(), $limitstart, $limit);
}
示例2:
function __construct($total, $limitstart, $limit, $perRow = 5)
{
if ($perRow !== 0) {
$this->_perRow = $perRow;
}
parent::__construct($total, $limitstart, $limit);
}
示例3:
function __construct($total, $limitstart, $limit)
{
global $mainframe;
if ($limit == "") {
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
}
parent::__construct($total, $limitstart, $limit);
}
示例4: __construct
public function __construct($total, $limitstart, $limit, $perRow = 5)
{
if ((int) $perRow > 1) {
$this->_perRow = $perRow;
}
parent::__construct($total, $limitstart, $limit);
// studio42 fix for limit=int
$this->setAdditionalUrlParam('limit', $limit);
}
示例5: intval
function __construct($total, $limitstart, $limit, $prefix = '') {
// If out of range, use last page
if ($total < (int) $limitstart)
$limitstart = intval($total / $limit) * $limit;
parent::__construct($total, $limitstart, $limit, $prefix);
$this->setDisplay();
if ($limitstart === false) $this->set('pages.current', -1);
$this->template = KunenaFactory::getTemplate();
}
示例6: __construct
/**
* Constructor
*
* @param int $total The total number of items
* @param int $limitstart The offset of the item to start at
* @param int $limit The number of items to display per page
* @param string $prefix The prefix used for request variables
* @param string $anchortag The anchor to use for the URLs
* @param string $onclick The contents of an optional 'onlick' attribute
* @return void
* @since 2.0
*/
public function __construct($total, $limitstart, $limit, $prefix = '', $anchortag = 'category', $onclick = null)
{
parent::__construct($total, $limitstart, $limit, $prefix);
$this->anchortag = '';
if ($anchortag) {
$this->anchortag = JHtml::_('joomgallery.anchor', $anchortag);
}
if ($onclick) {
$this->onclick = '" onclick="' . $onclick;
}
}
示例7: JRegistry
function __construct($total, $limitstart, $limit, $perRow = 3)
{
if ($perRow !== 0) {
$this->_perRow = $perRow;
}
$this->prefix = 'com_customfilters';
parent::__construct($total, $limitstart, $limit);
//ItemId
$module = JModuleHelper::getModule('mod_cf_filtering');
$params = new JRegistry();
$params->loadString($module->params);
$itemId = $params->get('cf_itemid', '');
if (!empty($itemId)) {
$this->setAdditionalUrlParam('Itemid', $itemId);
}
}
示例8: __construct
public function __construct($total, $limitstart, $limit, $prefix = '')
{
parent::__construct($total, $limitstart, $limit, $prefix);
}
示例9:
function __construct($total, $limitstart, $limit, $url = "")
{
//echo $url;
parent::__construct($total, $limitstart, $limit);
$this->url = $url;
}
示例10: mosPageNav
function mosPageNav( $total, $limitstart, $limit ) {
parent::__construct($total, $limitstart, $limit);
}
示例11:
function __construct($total, $limitstart, $limit)
{
if ($limit == 0 || $limit > 100) {
$limit = 100;
}
parent::__construct($total, $limitstart, $limit);
}
示例12:
function __construct($total, $limitstart, $limit)
{
$this->skinstyle = FST_Settings::get('skin_style');
parent::__construct($total, $limitstart, $limit);
}
示例13: __construct
public function __construct($total, $limitstart, $limit)
{
if ($limitstart > $total) {
$limitstart = 0;
}
parent::__construct($total, $limitstart, $limit);
}