FusionDirectory
Public Member Functions
filter Class Reference

This class contains all the function needed to manage filter. More...

Public Member Functions

 __construct ($filename)
 Create a filter. More...
 
 getTextfield ($element)
 Get the text in the field. More...
 
 getCheckbox ($element)
 Get the checkbox. More...
 
 getCombobox ($element)
 Get a combobox. More...
 
 getDatePicker ($element)
 Get the date picker. More...
 
 setComboBoxOptions ($tag, $options)
 Set the combobox options. More...
 
 setConverter ($field, $hook)
 Set a converter. More...
 
 setObjectStorage ($storage)
 Set a object storage. More...
 
 setBase ($base)
 Set a base. More...
 
 setCurrentScope ($scope)
 Set the current scope. More...
 
 renderAlphabet ($columns=10)
 Render alphabet. More...
 
 renderApply ()
 Render apply filter. More...
 
 renderScope ()
 Render scope. More...
 
 render ()
 Render.
 
 query ()
 Query.
 
 isValid ()
 Check if a filter is valid. More...
 
 update ()
 Update.
 
 getCompletitionList ($cfg, $tag, $value="*")
 Get competition list. More...
 
 processAutocomplete ()
 Auto complete.
 

Detailed Description

This class contains all the function needed to manage filter.

Definition at line 30 of file class_filter.inc.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $filename)

Create a filter.

Parameters
string$filename

Definition at line 54 of file class_filter.inc.

References query(), and xml\xml2array().

Member Function Documentation

◆ getCheckbox()

getCheckbox (   $element)

Get the checkbox.

Parameters
array$element

Definition at line 184 of file class_filter.inc.

◆ getCombobox()

getCombobox (   $element)

Get a combobox.

Parameters
array$element

Definition at line 201 of file class_filter.inc.

References getCompletitionList().

◆ getCompletitionList()

getCompletitionList (   $cfg,
  $tag,
  $value = "*" 
)

Get competition list.

Parameters
string$cfg
string$tag
string$value

Definition at line 596 of file class_filter.inc.

Referenced by getCombobox(), and processAutocomplete().

◆ getDatePicker()

getDatePicker (   $element)

Get the date picker.

Parameters
array$element

Definition at line 239 of file class_filter.inc.

References LdapGeneralizedTime\fromString().

◆ getTextfield()

getTextfield (   $element)

Get the text in the field.

Parameters
array$element

Definition at line 147 of file class_filter.inc.

◆ isValid()

isValid ( )

Check if a filter is valid.

Returns
TRUE if is valid, FALSE otherwise

Definition at line 534 of file class_filter.inc.

Referenced by simpleManagement\execute().

◆ renderAlphabet()

renderAlphabet (   $columns = 10)

Render alphabet.

Parameters
integer$columns

Definition at line 324 of file class_filter.inc.

◆ renderApply()

renderApply ( )

Render apply filter.

Returns
string

Definition at line 367 of file class_filter.inc.

◆ renderScope()

renderScope ( )

Render scope.

Returns
string

Definition at line 377 of file class_filter.inc.

◆ setBase()

setBase (   $base)

Set a base.

Parameters
string$base

Definition at line 304 of file class_filter.inc.

Referenced by listing\setFilter().

◆ setComboBoxOptions()

setComboBoxOptions (   $tag,
  $options 
)

Set the combobox options.

Parameters
string$tag
array$options

Definition at line 266 of file class_filter.inc.

◆ setConverter()

setConverter (   $field,
  $hook 
)

Set a converter.

Parameters
string$field
string$hook

Definition at line 283 of file class_filter.inc.

◆ setCurrentScope()

setCurrentScope (   $scope)

Set the current scope.

Parameters
string$scope

Definition at line 314 of file class_filter.inc.

Referenced by listing\getAction().

◆ setObjectStorage()

setObjectStorage (   $storage)

Set a object storage.

Parameters
string$storage

Definition at line 293 of file class_filter.inc.


The documentation for this class was generated from the following file: