Documentation

Vtiger_CssScript_Model extends Base
in package

CSS Script Model Class.

Table of Contents

DEFAULT_MEDIA  = 'all'
DEFAULT_REL  = 'stylesheet'
DEFAULT_TYPE  = 'text/css'
LESS_REL  = 'stylesheet/less'
$value  : array<string|int, mixed>
__construct()  : mixed
Constructor.
get()  : mixed
Function to get the value for a given key.
getArray()  : array<string|int, mixed>
Function to get the array values for a given key.
getData()  : array<string|int, mixed>
Function to get all the values of the Object.
getForHtml()  : mixed
Function to get the html encoded value for a given key.
getForSql()  : mixed
Function to get the value if its safe to use for SQL Query (column).
getHref()  : string
Function to get the href attribute value.
getInstanceFromLinkObject()  : Vtiger_CssScript_Model
Function to get the instance of CSS Script model from a given vtlib\Link object.
getKeys()  : array<string|int, string>
Function to get keys.
getMedia()  : string
Function to get the media attribute value.
getRel()  : string
Function to get the rel attribute value.
getType()  : string
Function to get the type attribute value.
has()  : bool
Function to check if the key exists.
isEmpty()  : bool
Function to check if the key is empty.
remove()  : mixed
Function to remove the value.
set()  : $this
Function to set the value for a given key.
setData()  : $this
Function to set all the values.

Constants

DEFAULT_MEDIA

public mixed DEFAULT_MEDIA = 'all'

DEFAULT_REL

public mixed DEFAULT_REL = 'stylesheet'

DEFAULT_TYPE

public mixed DEFAULT_TYPE = 'text/css'

LESS_REL

public mixed LESS_REL = 'stylesheet/less'

Properties

$value

protected array<string|int, mixed> $value

Values

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
$values : array<string|int, mixed> = []
Return values
mixed

get()

Function to get the value for a given key.

public get(string $key) : mixed
Parameters
$key : string
Return values
mixed

Value for the given key

getArray()

Function to get the array values for a given key.

public getArray(string $key[, array<string|int, mixed> $value = [] ]) : array<string|int, mixed>
Parameters
$key : string
$value : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getData()

Function to get all the values of the Object.

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getForHtml()

Function to get the html encoded value for a given key.

public getForHtml(string $key) : mixed
Parameters
$key : string
Return values
mixed

getForSql()

Function to get the value if its safe to use for SQL Query (column).

public getForSql(string $key[, bool $skipEmtpy = true ]) : mixed
Parameters
$key : string
$skipEmtpy : bool = true

Skip the check if string is empty

Return values
mixed

Value for the given key

getHref()

Function to get the href attribute value.

public getHref() : string
Return values
string

getKeys()

Function to get keys.

public getKeys() : array<string|int, string>
Return values
array<string|int, string>

getMedia()

Function to get the media attribute value.

public getMedia() : string
Return values
string

getRel()

Function to get the rel attribute value.

public getRel() : string
Return values
string

getType()

Function to get the type attribute value.

public getType() : string
Return values
string

has()

Function to check if the key exists.

public has(string $key) : bool
Parameters
$key : string
Return values
bool

isEmpty()

Function to check if the key is empty.

public isEmpty(string $key) : bool
Parameters
$key : string
Return values
bool

remove()

Function to remove the value.

public remove(string $key) : mixed
Parameters
$key : string
Return values
mixed

set()

Function to set the value for a given key.

public set(string $key, mixed $value) : $this
Parameters
$key : string
$value : mixed
Return values
$this

setData()

Function to set all the values.

public setData(mixed $values) : $this
Parameters
$values : mixed
Return values
$this

        

Search results