![]() |
Xataface 2.0
Xataface Application Framework
|
Public Member Functions | |
Dataface_ValuelistTool () | |
_valuelistsIniFilePath () | |
_hasValuelistsIniFile () | |
_loadValuelistsIniFile () | |
& | getValuelist ($name) |
hasValuelist ($name) | |
& | valuelists () |
addValueToValuelist (&$table, $valuelistName, $value, $key=null, $checkPerms=false) | |
& | asRelationship (&$table, $valuelistName) |
Returns the valuelist as a relationship. This is handy for adding values to it and searching it. | |
Static Public Member Functions | |
static & | getInstance () |
Data Fields | |
$_valuelists = array() |
Definition at line 21 of file ValuelistTool.php.
_hasValuelistsIniFile | ( | ) |
Definition at line 37 of file ValuelistTool.php.
_loadValuelistsIniFile | ( | ) |
Definition at line 41 of file ValuelistTool.php.
_valuelistsIniFilePath | ( | ) |
Definition at line 33 of file ValuelistTool.php.
addValueToValuelist | ( | &$ | table, |
$ | valuelistName, | ||
$ | value, | ||
$ | key = null , |
||
$ | checkPerms = false |
||
) |
Adds a value to a valuelist. This only works for valuelists that are pulled from the database.
Dataface_Table | The table to add the valuelist to. | |
string | $valuelistName | The name of the valuelist. |
string | $value | The value to add. |
string | $key | The key to add. |
boolean | $checkPerms | If true, this will first check permissions before adding the value. |
Definition at line 148 of file ValuelistTool.php.
& asRelationship | ( | &$ | table, |
$ | valuelistName | ||
) |
Returns the valuelist as a relationship. This is handy for adding values to it and searching it.
Dataface_Table | &$table | The table where the valuelist is defined. |
string | $valuelistName | The name of the valuelist. |
Definition at line 197 of file ValuelistTool.php.
Definition at line 26 of file ValuelistTool.php.
static& getInstance | ( | ) | [static] |
Definition at line 91 of file ValuelistTool.php.
& getValuelist | ( | $ | name | ) |
Definition at line 99 of file ValuelistTool.php.
hasValuelist | ( | $ | name | ) |
Definition at line 114 of file ValuelistTool.php.
& valuelists | ( | ) |
Obtains reference to valuelists associative array.
Definition at line 126 of file ValuelistTool.php.
$_valuelists = array() |
Definition at line 24 of file ValuelistTool.php.