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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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