SGL_UtilVarious utility methods.
Located in /SGL/Util.php (line 48)
static array
listDir
(string $path, [int $list = FILE_LIST_ALL], [int $sort = FILE_SORT_NONE], [mixed $cb = null])
static getAllModuleDirs (line 155)
Returns an hash of strings listing the installed (and registered) Modules
static listDir (line 285)
Wrapper for the File_Util::listDir method.
Instead of returning an array of objects, it returns an array of strings (filenames).
The final argument, $cb, is a callback that either evaluates to true or false and performs a filter operation, or it can also modify the directory/file names returned. To achieve the latter effect use as follows:
getAllActionMethodsPerMgr (line 194)
getAllClassesFromFolder (line 235)
getAllManagersPerModule (line 177)
getAllThemes (line 120)
getLangsDescriptionMap (line 319)
Returns a hash of the form array('en-iso-8859-15' => 'English (en-iso-8859-15),) etc.
getSortBy (line 90)
Determines which column results should be sorted by.
If no value passed from Request, returns last value from session
getSortOrder (line 64)
Used by list pages to determine last sort order.
If no value passed from Request, returns last value from session
getTmpDir (line 395)
Returns the system's tmp directory.
Mactel doesn't supply tmp path in most of the normal places.
loadParams (line 349)
Returns params from ini file.
makeIniUnreadable (line 305)
Ini file protection.
By giving ini files a php extension, and inserting some PHP die() code, we can improve security in situations where browsers might be able to read them. Thanks to Georg Gell for the idea.
themeFilterCallback (line 131)
Documentation generated on Tue, 23 Feb 2010 18:14:34 +0000 by phpDocumentor 1.4.3