Back to PaginationObject class

Method __construct

public
__construct
(mixed $text, mixed $prefix = '', mixed $base = null, mixed $link = null, mixed $active = false)
Class constructor.
Parameters
  • string $text The link text.
  • string $prefix The prefix used for request variables.
  • int $base The number of rows as a base offset.
  • string $link The link URL.
  • bool $active Flag whether the object is the 'active' page
Since
  • 1.5

Method __construct - Source code

/**
 * Class constructor.
 *
 * @param   string   $text    The link text.
 * @param   string   $prefix  The prefix used for request variables.
 * @param   integer  $base    The number of rows as a base offset.
 * @param   string   $link    The link URL.
 * @param   boolean  $active  Flag whether the object is the 'active' page
 *
 * @since   1.5
 */
public function __construct($text, $prefix = '', $base = null, $link = null, $active = false)
{
    $this->text = $text;
    $this->prefix = $prefix;
    $this->base = $base;
    $this->link = $link;
    $this->active = $active;
}