예제 #1
1
 function __construct(XiptModel &$model)
 {
     $limit = null;
     $limitstart = null;
     $this->initDefaultStates($model, $limit, $limitstart);
     return parent::__construct($model->getTotal(), $limitstart, $limit);
 }
 function __construct($total, $limitstart, $limit, $perRow = 5)
 {
     if ($perRow !== 0) {
         $this->_perRow = $perRow;
     }
     parent::__construct($total, $limitstart, $limit);
 }
예제 #3
0
 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);
 }
 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
0
	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
0
 /**
  * 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
0
 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
0
 public function __construct($total, $limitstart, $limit, $prefix = '')
 {
     parent::__construct($total, $limitstart, $limit, $prefix);
 }
예제 #9
0
 function __construct($total, $limitstart, $limit, $url = "")
 {
     //echo $url;
     parent::__construct($total, $limitstart, $limit);
     $this->url = $url;
 }
예제 #10
0
		function mosPageNav( $total, $limitstart, $limit ) {
			parent::__construct($total, $limitstart, $limit);
		}
 function __construct($total, $limitstart, $limit)
 {
     if ($limit == 0 || $limit > 100) {
         $limit = 100;
     }
     parent::__construct($total, $limitstart, $limit);
 }
예제 #12
0
 function __construct($total, $limitstart, $limit)
 {
     $this->skinstyle = FST_Settings::get('skin_style');
     parent::__construct($total, $limitstart, $limit);
 }
예제 #13
0
 public function __construct($total, $limitstart, $limit)
 {
     if ($limitstart > $total) {
         $limitstart = 0;
     }
     parent::__construct($total, $limitstart, $limit);
 }