1 <?php
2 /**
3 * @package Joomla.Libraries
4 * @subpackage Pagination
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Pagination object representing a particular item in the pagination lists.
14 *
15 * @since 1.5
16 */
17 class JPaginationObject
18 {
19 /**
20 * @var string The link text.
21 * @since 1.5
22 */
23 public $text;
24
25 /**
26 * @var integer The number of rows as a base offset.
27 * @since 1.5
28 */
29 public $base;
30
31 /**
32 * @var string The link URL.
33 * @since 1.5
34 */
35 public $link;
36
37 /**
38 * @var integer The prefix used for request variables.
39 * @since 1.6
40 */
41 public $prefix;
42
43 /**
44 * @var boolean Flag whether the object is the 'active' page
45 * @since 3.0
46 */
47 public $active;
48
49 /**
50 * Class constructor.
51 *
52 * @param string $text The link text.
53 * @param string $prefix The prefix used for request variables.
54 * @param integer $base The number of rows as a base offset.
55 * @param string $link The link URL.
56 * @param boolean $active Flag whether the object is the 'active' page
57 *
58 * @since 1.5
59 */
60 public function __construct($text, $prefix = '', $base = null, $link = null, $active = false)
61 {
62 $this->text = $text;
63 $this->prefix = $prefix;
64 $this->base = $base;
65 $this->link = $link;
66 $this->active = $active;
67 }
68 }
69