Public Member Functions | |
isSsl () | |
loadFile ($args) | |
unloadFile ($fileName, $targetIe= '', $media= 'all') | |
unloadAllFiles ($type= 'all') | |
getCssFileList () | |
getJsFileList ($type= 'head') | |
_sortMap (&$map, &$index) | |
_normalizeFilePath ($path) | |
_getAbsFileUrl ($path) | |
_arrangeCssIndex ($dirName, &$file) | |
Public Attributes | |
$cssMap = array() | |
$jsHeadMap = array() | |
$jsBodyMap = array() | |
$cssMapIndex = array() | |
$jsHeadMapIndex = array() | |
$jsBodyMapIndex = array() | |
Static Public Attributes | |
static | $isSSL = null |
Handle front end files
Definition at line 8 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::_arrangeCssIndex | ( | $dirName, | |
& | $file | ||
) |
Arrage css index
string | $dirName | First directory name of css path |
array | $file | file info. |
Definition at line 443 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::_getAbsFileUrl | ( | $path | ) |
Get absolute file url
string | $path | Path to get absolute url |
Definition at line 412 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::_normalizeFilePath | ( | $path | ) |
Normalize File path
string | $path | Path to normalize |
Definition at line 385 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::_sortMap | ( | & | $map, |
& | $index | ||
) |
Sort a map
array | $map | Array to sort |
array | $index | Not used |
Definition at line 374 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::getCssFileList | ( | ) |
Get css file list
Definition at line 271 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::getJsFileList | ( | $type = 'head' | ) |
Get javascript file list
string | $type | Type of javascript. head, body |
Definition at line 313 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::isSsl | ( | ) |
Check SSL
Definition at line 55 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::loadFile | ( | $args | ) |
Load front end file
The $args is use as below. File type(js, css) is detected by file extension.
case js $args[0]: file name $args[1]: type (head | body) $args[2]: target IE $args[3]: index case css $args[0]: file name $args[1]: media $args[2]: target IE $args[3]: index
array | $args | Arguments |
Definition at line 89 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::unloadAllFiles | ( | $type = 'all' | ) |
Unload all front end file
string | $type | Type to unload. all, css, js |
Definition at line 249 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::unloadFile | ( | $fileName, | |
$targetIe = '' , |
|||
$media = 'all' |
|||
) |
Unload front end file
string | $fileName | The file name to unload |
string | $targetIe | Target IE of file to unload |
string | $media | Media of file to unload. Only use when file is css. |
Definition at line 216 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$cssMap = array() |
Definition at line 17 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$cssMapIndex = array() |
Definition at line 35 of file FrontEndFileHandler.class.php.
|
static |
Definition at line 11 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$jsBodyMap = array() |
Definition at line 29 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$jsBodyMapIndex = array() |
Definition at line 47 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$jsHeadMap = array() |
Definition at line 23 of file FrontEndFileHandler.class.php.
FrontEndFileHandler::$jsHeadMapIndex = array() |
Definition at line 41 of file FrontEndFileHandler.class.php.