PHP Класс Turba_View_List, horde

Copyright 2000-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (ASL). If you did did not receive this file, see http://www.horde.org/licenses/apache.
Автор: Chuck Hagenbuch ([email protected])
Автор: Jon Parise ([email protected])
Наследование: implements Countable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$columns array Which columns to render
$form Horde_Form A dummy form object.
$list Turba_List The Turba_List object that we are visualizing.
$renderer Horde_Core_Ui_VarRenderer_Html The HTML renderer.
$showEdit boolean Show/hide "edit" column in the display.
$showGroup boolean Show/hide "group" column in the display.
$showMark boolean Show/hide "mark" column in the display.
$showSort boolean Show/hide "sort" column in the display.
$showVcard boolean Show/hide "vcard" column in the display.
$type string Type of list.
$variables array A list of Horde_Form_Variable objects.
$vars Horde_Variables A Horde_Variables object.

Открытые методы

Метод Описание
__construct ( Turba_List $list, array $controls = null, array $columns = null ) : Turba_View_List Constructs a new Turba_View_List object.
count ( ) : integer Returns the number of Turba_Objects that are in the list. Use this to hide internal implementation details from client objects.
display ( )
getAddSources ( )
getAlpha ( integer &$numDisplayed, string $alpha ) : string Renders the list contents that match $alpha into an HTML view.
getColumnName ( integer $i ) : string Retrieves a column's name
getColumnSortDirection ( integer $i )
getColumnSortImage ( integer $i, string $title = null ) : string
getPage ( integer &$numDisplayed, integer $min, integer $max = null, string $page ) : string Renders the list contents into an HTML view.
getSortInfoForColumn ( integer $i )
getSortOrderDescription ( ) : string Retrieves a natural language description of the sort order
getType ( ) : string
isPrimarySortColumn ( integer $i ) : boolean Determines whether this is the first column to sort by
isSortColumn ( integer $i ) : boolean Determines whether we are sorting on the specified column
setControls ( array $controls ) Set which controls are shown by the display templates.
setType ( string $type )

Защищенные методы

Метод Описание
_get ( integer &$numDisplayed, object $filter, string $page ) : string

Описание методов

__construct() публичный Метод

Constructs a new Turba_View_List object.
public __construct ( Turba_List $list, array $controls = null, array $columns = null ) : Turba_View_List
$list Turba_List List of contacts to display.
$controls array Which icons to display
$columns array The list of columns to display
Результат Turba_View_List

_get() защищенный Метод

protected _get ( integer &$numDisplayed, object $filter, string $page ) : string
$numDisplayed integer Set to the number of displayed contacts.
$filter object A Turba_View_List filter object.
$page string The currently displayed page.
Результат string

count() публичный Метод

Returns the number of Turba_Objects that are in the list. Use this to hide internal implementation details from client objects.
public count ( ) : integer
Результат integer The number of objects in the list.

display() публичный Метод

public display ( )

getAddSources() публичный Метод

public getAddSources ( )

getAlpha() публичный Метод

Renders the list contents that match $alpha into an HTML view.
public getAlpha ( integer &$numDisplayed, string $alpha ) : string
$numDisplayed integer This will be set to the number of contacts in the view.
$alpha string The letter to display.
Результат string HTML of the list.

getColumnName() публичный Метод

Retrieves a column's name
public getColumnName ( integer $i ) : string
$i integer The zero-basd index of the column
Результат string

getColumnSortDirection() публичный Метод

public getColumnSortDirection ( integer $i )
$i integer The zero-based index of the column

getColumnSortImage() публичный Метод

public getColumnSortImage ( integer $i, string $title = null ) : string
$i integer
$title string
Результат string

getPage() публичный Метод

Renders the list contents into an HTML view.
public getPage ( integer &$numDisplayed, integer $min, integer $max = null, string $page ) : string
$numDisplayed integer Output parameter - the number of rows rendered.
$min integer Minimum number of rows to display.
$max integer Maximum number of rows to display.
$page string The currently displayed page.
Результат string HTML to echo.

getSortInfoForColumn() публичный Метод

public getSortInfoForColumn ( integer $i )
$i integer The zero-based index of the column

getSortOrderDescription() публичный Метод

Retrieves a natural language description of the sort order
public getSortOrderDescription ( ) : string
Результат string

getType() публичный Метод

public getType ( ) : string
Результат string

isPrimarySortColumn() публичный Метод

Determines whether this is the first column to sort by
public isPrimarySortColumn ( integer $i ) : boolean
$i integer The zero-based column index
Результат boolean

isSortColumn() публичный Метод

Determines whether we are sorting on the specified column
public isSortColumn ( integer $i ) : boolean
$i integer The zero-based column index
Результат boolean

setControls() публичный Метод

Set which controls are shown by the display templates.
public setControls ( array $controls )
$controls array

setType() публичный Метод

public setType ( string $type )
$type string

Описание свойств

$columns публичное свойство

Which columns to render
public array $columns
Результат array

$form публичное свойство

A dummy form object.
public Horde_Form $form
Результат Horde_Form

$list публичное свойство

The Turba_List object that we are visualizing.
public Turba_List $list
Результат Turba_List

$renderer публичное свойство

The HTML renderer.
public Horde_Core_Ui_VarRenderer_Html $renderer
Результат Horde_Core_Ui_VarRenderer_Html

$showEdit публичное свойство

Show/hide "edit" column in the display.
public bool $showEdit
Результат boolean

$showGroup публичное свойство

Show/hide "group" column in the display.
public bool $showGroup
Результат boolean

$showMark публичное свойство

Show/hide "mark" column in the display.
public bool $showMark
Результат boolean

$showSort публичное свойство

Show/hide "sort" column in the display.
public bool $showSort
Результат boolean

$showVcard публичное свойство

Show/hide "vcard" column in the display.
public bool $showVcard
Результат boolean

$type публичное свойство

Type of list.
public string $type
Результат string

$variables публичное свойство

A list of Horde_Form_Variable objects.
public array $variables
Результат array

$vars публичное свойство

A Horde_Variables object.
public Horde_Variables $vars
Результат Horde_Variables