Documentation

Compression_Controller_Js extends Compression_Controller
in package

Compression.

Tags
subpackage

Compression

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$instance  : object
Object instance
$_aJs  : array<string|int, mixed>
Js array

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
self

clear()

Clear controller

public clear() : self
Return values
self

compress()

Compress data

public compress(mixed $str, mixed $fileName) : string
Parameters
$str : mixed
$fileName : mixed
Return values
string

deleteAllJs()

Delete all cached files

public deleteAllJs() : self
Return values
self

getJsDirHref()

Get href of the cache dir for the JS

public getJsDirHref() : string
Return values
string

getJsDirPath()

Get path of the cache dir for the JS with CMS_FOLDER

public getJsDirPath() : string
Return values
string

getPath()

Get path

public getPath() : string
Return values
string

instance()

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

Return values
srting

        
On this page

Search results