Compression_Controller_Js
extends Compression_Controller
in package
Compression.
Tags
Table of Contents
Properties
Methods
- addJs() : self
- Add Js
- clear() : self
- Clear controller
- compress() : string
- Compress data
- deleteAllJs() : self
- Delete all cached files
- getJsDirHref() : string
- Get href of the cache dir for the JS
- getJsDirPath() : string
- Get path of the cache dir for the JS with CMS_FOLDER
- getPath() : string
- Get path
- instance() : object
- Register an existing instance as a singleton.
- _getDriverName() : srting
- Get full driver name
Properties
$instance
Object instance
public
static object
$instance
= \NULL
$_aJs
Js array
protected
array<string|int, mixed>
$_aJs
= array()
Methods
addJs()
Add Js
public
addJs(string $path) : self
Parameters
- $path : string
Return values
selfclear()
Clear controller
public
clear() : self
Return values
selfcompress()
Compress data
public
compress(mixed $str, mixed $fileName) : string
Parameters
- $str : mixed
- $fileName : mixed
Return values
stringdeleteAllJs()
Delete all cached files
public
deleteAllJs() : self
Return values
selfgetJsDirHref()
Get href of the cache dir for the JS
public
getJsDirHref() : string
Return values
stringgetJsDirPath()
Get path of the cache dir for the JS with CMS_FOLDER
public
getJsDirPath() : string
Return values
stringgetPath()
Get path
public
getPath() : string
Return values
stringinstance()
Register an existing instance as a singleton.
public
static instance([string $driver = 'http' ]) : object
Parameters
- $driver : string = 'http'
-
driver's name
Return values
object_getDriverName()
Get full driver name
protected
static _getDriverName(string $driver) : srting
Parameters
- $driver : string
-
driver name