Documentation

Horde_Core_Ui_Pager extends Horde_Core_Ui_Widget
in package

The Horde_Core_Ui_Pager:: provides links to individual pages.

Copyright 2004-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Ben Chavet ben@chavet.net

author

Joel Vandal joel@scopserv.com

author

Chuck Hagenbuch chuck@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Properties

$_config  : array<string|int, mixed>
An array of name => value pairs which configure how this widget behaves.
$_name  : string
The name of this widget. This is used as the basename for variables we access and manipulate.
$_preserve  : array<string|int, mixed>
Any variables that should be preserved in all of the widget's links.
$_url_callback  : callable
Holds the name of a callback function to call on any URLS before they are used/returned. If an array, it is taken as an object/method name, if a string, it is taken as a php function.
$_vars  : Horde_Variables
A reference to a Horde_Variables:: object this widget will use and manipulate.

Methods

__construct()  : mixed
Constructor.
preserve()  : mixed
Instructs widget to preserve a variable or a set of variables.
render()  : string
Render the pager.
_addPreserved()  : mixed
TODO
_link()  : mixed
TODO

Properties

$_config

An array of name => value pairs which configure how this widget behaves.

protected array<string|int, mixed> $_config

$_name

The name of this widget. This is used as the basename for variables we access and manipulate.

protected string $_name

$_preserve

Any variables that should be preserved in all of the widget's links.

protected array<string|int, mixed> $_preserve = array()

$_url_callback

Holds the name of a callback function to call on any URLS before they are used/returned. If an array, it is taken as an object/method name, if a string, it is taken as a php function.

protected callable $_url_callback = array('Horde', 'url')

$_vars

A reference to a Horde_Variables:: object this widget will use and manipulate.

protected Horde_Variables $_vars

Methods

__construct()

Constructor.

public __construct(mixed $name, mixed $vars, mixed $config) : mixed

TODO

Parameters
$name : mixed

The name of the variable which will track this UI widget's state.

$vars : mixed

A Horde_Variables:: object.

$config : mixed

The widget's configuration.

preserve()

Instructs widget to preserve a variable or a set of variables.

public preserve(string|array<string|int, mixed> $var[, mixed $value = null ]) : mixed
Parameters
$var : string|array<string|int, mixed>

The name of the variable to preserve, or an array of variables to preserve.

$value : mixed = null

If preserving a single key, the value of the variable to preserve.

render()

Render the pager.

public render([mixed $data = null ]) : string
Parameters
$data : mixed = null

The widget's state data.

Return values
string

HTML code containing a centered table with the pager links.

_addPreserved()

TODO

protected _addPreserved(mixed $link) : mixed
Parameters
$link : mixed

TODO

protected _link(mixed $link) : mixed
Parameters
$link : mixed

        
On this page

Search results