Generates the list view.

package lists
author Roland Gruber

 Methods

Constructor

__construct(string $type) : \lamList

Parameters

$type

string

account type

Returns

\lamListlist object

Prints the HTML code to display the list view.

showPage() 

Returns if the given attribute can be filtered.

canBeFiltered(String $attr) : boolean

If filtering is not possible then no filter box will be displayed. By default all attributes can be filtered.

Parameters

$attr

String

attribute name

Returns

booleanfiltering possible

Compare function used for usort-method

cmp_array(array $a, array $b) : integer

Rows are sorted with the first attribute entry of the sort column. If objects have attributes with multiple values only the first is used for sorting.

Parameters

$a

array

first row which is compared

$b

array

second row which is compared

Returns

integer0 if both are equal, 1 if $a is greater, -1 if $b is greater

Returns a list of additional LDAP attributes that should be read.

getAdditionalLDAPAttributesToRead() : array

This can be used to show additional data even if the user selected other attributes to show in the list.

Returns

arrayadditional attribute names

Returns a list of lamListTool objects to display next to the edit/delete buttons.

getAdditionalTools() : \lamListTool[]

Returns

Builds the regular expressions from the filter values.

listBuildFilter() 

Called when the configuration options changed.

listConfigurationChanged() 

Manages all POST actions (e.g.

listDoPost() : String

button pressed) for the account lists.

Returns

StringHTML fragment to insert into beginning of account list

Draws a navigation bar to switch between pages

listDrawNavigationBar(integer $count) 

Parameters

$count

integer

number of account entries

Returns a list of possible configuration options.

listGetAllConfigOptions() : array

Returns

arraylist of lamListOption objects

Returns an hash array containing with all attributes to be shown and their descriptions.

listGetAttributeDescriptionList() : array

Format: array(attribute => description)

Returns

arrayattribute list

Returns the configuration option with the given ID.

listGetConfigOptionByID(String $ID) 

Parameters

$ID

String

ID

Sets some internal parameters.

listGetParams() 

Prints the create and delete buttons.

listPrintButtons(boolean $createOnly) 

Parameters

$createOnly

boolean

true if only the create button should be displayed

Prints the list configuration page.

listPrintConfigurationPage() 

Prints the HTML footer.

listPrintFooter() 

Prints the HTML header.

listPrintHeader() 

Prints messages when another page (e.g.

listPrintRedirectMessages() 

delete/upload) redirects to the list view.

Prints the entry list

listPrintTableBody(array $info) 

Parameters

$info

array

entries

Prints the content of a cell in the account list for a given LDAP entry and attribute.

listPrintTableCellContent(array $entry, string $attribute) 

Parameters

$entry

array

LDAP attributes

$attribute

string

attribute name

Prints the attribute and filter row at the account table head

listPrintTableHeader() 

Rereads the entries from LDAP.

listRefreshData() 

Prints a combobox with possible sub-DNs.

listShowOUSelection() 

Sorts an account list by a given attribute

listSort(array $info) 

Parameters

$info

array

the account list

Reads the list options from the cookie value.

listReadOptionsFromCookie() 

Shows the page where the user may select the PDF options.

showPDFPage(String $id) 

Parameters

$id

String

account ID

 Properties

 

list of LDAP attributes

$attrArray 

 

list of attribute descriptions

$descArray 

 

LDAP entries

$entries 

 

LDAP filter part which was entered by user via filter boxes

$filterPart 

 

filter string to include in URL

$filterText 

 

list of account specific labels

$labels 

 

maximum count of entries per page

$maxPageEntries 

 

current page number

$page 

 

list of possible LDAP suffixes(organizational units)

$possibleSuffixes 

 

refresh page switch

$refresh 

 

sort column name

$sortColumn 

 

sort direction: 1 for ascending, -1 for descending

$sortDirection 

 

LDAP suffix

$suffix 

 

Account type

$type 

 

configuration options

$configOptions 

 Constants

 

ID for list size config option

LIST_SIZE_OPTION_NAME 

 

prefix for virtual (non-LDAP) attributes

VIRTUAL_ATTRIBUTE_PREFIX