\rex_clang

Clang class.

Summary

Methods
Properties
Constants
exists()
get()
getStartId()
getCurrent()
getCurrentId()
setCurrentId()
getId()
getCode()
getName()
getPriority()
isOnline()
hasValue()
getValue()
count()
getAllIds()
getAll()
reset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

exists()

exists(int  $id) : bool

Checks if the given clang exists.

Parameters

int $id

Clang id

Returns

bool —

get()

get(int  $id) : self|null

Returns the clang object for the given id.

Parameters

int $id

Clang id

Returns

self|null —

getStartId()

getStartId() : int

Returns the clang start id.

Returns

int —

getCurrent()

getCurrent() : self

Returns the current clang object.

Returns

self —

getCurrentId()

getCurrentId() : int

Returns the current clang id.

Returns

int —

Current clang id

setCurrentId()

setCurrentId(int  $id) : mixed

Sets the current clang id.

Parameters

int $id

Clang id

Throws

\rex_exception

Returns

mixed —

getId()

getId() : int

Returns the id.

Returns

int —

getCode()

getCode() : string

Returns the lang code.

Returns

string —

getName()

getName() : string

Returns the name.

Returns

string —

getPriority()

getPriority() : int

Returns the priority.

Returns

int —

isOnline()

isOnline() : bool

Returns the status.

Returns

bool —

hasValue()

hasValue(string  $key) : bool

Checks whether the clang has the given value.

Parameters

string $key

Returns

bool —

getValue()

getValue(string  $key) : mixed

Returns the given value.

Parameters

string $key

Returns

mixed —

count()

count(bool  $ignoreOfflines = false) : int

Counts the clangs.

Parameters

bool $ignoreOfflines

Returns

int —

getAllIds()

getAllIds(bool  $ignoreOfflines = false) : int[]

Returns an array of all clang ids.

Parameters

bool $ignoreOfflines

Returns

int[] —

getAll()

getAll(bool  $ignoreOfflines = false) : self[]

Returns an array of all clangs.

Parameters

bool $ignoreOfflines

Returns

self[] —

reset()

reset() : mixed

Resets the intern cache of this class.

Returns

mixed —