associative convertMenuConfigFileToArray(
string
$fileName, [string
$lineDelimiter = ';'], [string
$valueDelimiter = ','])
|
|
Converts the contents of a screen menu configuration file stored in the filesystem location specified by the PATH_CONF constant into an associative array.
The lefthand value of each line in the config file is treated as an key value of the $GLOBALS['lang'] array. In other words: it is replaced with the corresponding value in the selected application language. This method should only be used when no access restrictions or other operations need to be done on the screen menu as the resulting array will have the menu item names replaced by the label in the system language.
Tags:
Parameters:
array convertRowsArrayToColumnsArray(
array
$array, [integer
$keyColumn = 0])
|
|
converts a rows_array as returned by the ORM and DB classes into an associative array.
The returned array contains a set of arrays that each represent a column of the original query result. These individual arrays are associative arrays, the key being the primary key (or other unique value) of the database record. The function assumes that this is the first column in the query result. If this is not the case the $keyColumn argument should be provided.
Tags:
Parameters: