XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
FrontEndFileHandler Class Reference
Inheritance diagram for FrontEndFileHandler:
Handler

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
 

Detailed Description

Handle front end files

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com)

Definition at line 8 of file FrontEndFileHandler.class.php.

Member Function Documentation

FrontEndFileHandler::_arrangeCssIndex (   $dirName,
$file 
)

Arrage css index

Parameters
string$dirNameFirst directory name of css path
array$filefile info.
Returns
void

Definition at line 443 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::_getAbsFileUrl (   $path)

Get absolute file url

Parameters
string$pathPath to get absolute url
Returns
string Absolute url

Definition at line 412 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::_normalizeFilePath (   $path)

Normalize File path

Parameters
string$pathPath to normalize
Returns
string Normalized path

Definition at line 385 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::_sortMap ( $map,
$index 
)

Sort a map

Parameters
array$mapArray to sort
array$indexNot used
Returns
void

Definition at line 374 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::getCssFileList ( )

Get css file list

Returns
array Returns css file list. Array contains file, media, targetie.

Definition at line 271 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::getJsFileList (   $type = 'head')

Get javascript file list

Parameters
string$typeType of javascript. head, body
Returns
array Returns javascript file list. Array contains file, targetie.

Definition at line 313 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::isSsl ( )

Check SSL

Returns
bool If using ssl returns true, otherwise returns false.
Deprecated:

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
Parameters
array$argsArguments
Returns
void

Definition at line 89 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::unloadAllFiles (   $type = 'all')

Unload all front end file

Parameters
string$typeType to unload. all, css, js
Returns
void

Definition at line 249 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::unloadFile (   $fileName,
  $targetIe = '',
  $media = 'all' 
)

Unload front end file

Parameters
string$fileNameThe file name to unload
string$targetIeTarget IE of file to unload
string$mediaMedia of file to unload. Only use when file is css.
Returns
void

Definition at line 216 of file FrontEndFileHandler.class.php.

Member Data Documentation

FrontEndFileHandler::$cssMap = array()

Definition at line 17 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::$cssMapIndex = array()

Definition at line 35 of file FrontEndFileHandler.class.php.

FrontEndFileHandler::$isSSL = null
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.


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