rex_clang
in package
Clang class.
Tags
Table of Contents
Methods
- count() : int
- Counts the clangs.
- exists() : bool
- Checks if the given clang exists.
- get() : self|null
- Returns the clang object for the given id.
- getAll() : array<int, self>
- Returns an array of all clangs.
- getAllIds() : array<int, int>
- Returns an array of all clang ids.
- getCode() : string
- Returns the lang code.
- getCurrent() : self
- Returns the current clang object.
- getCurrentId() : int
- Returns the current clang id.
- getId() : int
- Returns the id.
- getName() : string
- Returns the name.
- getPriority() : int
- Returns the priority.
- getStartId() : int
- Returns the clang start id.
- getValue() : mixed
- Returns the given value.
- hasValue() : bool
- Checks whether the clang has the given value.
- isOnline() : bool
- Returns the status.
- reset() : void
- Resets the intern cache of this class.
- setCurrentId() : void
- Sets the current clang id.
Methods
count()
Counts the clangs.
public
static count([bool $ignoreOfflines = false ]) : int
Parameters
- $ignoreOfflines : bool = false
Return values
intexists()
Checks if the given clang exists.
public
static exists(int $id) : bool
Parameters
- $id : int
-
Clang id
Return values
boolget()
Returns the clang object for the given id.
public
static get(int $id) : self|null
Parameters
- $id : int
-
Clang id
Return values
self|nullgetAll()
Returns an array of all clangs.
public
static getAll([bool $ignoreOfflines = false ]) : array<int, self>
Parameters
- $ignoreOfflines : bool = false
Return values
array<int, self>getAllIds()
Returns an array of all clang ids.
public
static getAllIds([bool $ignoreOfflines = false ]) : array<int, int>
Parameters
- $ignoreOfflines : bool = false
Return values
array<int, int>getCode()
Returns the lang code.
public
getCode() : string
Return values
stringgetCurrent()
Returns the current clang object.
public
static getCurrent() : self
Return values
selfgetCurrentId()
Returns the current clang id.
public
static getCurrentId() : int
Return values
int —Current clang id
getId()
Returns the id.
public
getId() : int
Return values
intgetName()
Returns the name.
public
getName() : string
Return values
stringgetPriority()
Returns the priority.
public
getPriority() : int
Return values
intgetStartId()
Returns the clang start id.
public
static getStartId() : int
Return values
intgetValue()
Returns the given value.
public
getValue(string $key) : mixed
Parameters
- $key : string
hasValue()
Checks whether the clang has the given value.
public
hasValue(string $key) : bool
Parameters
- $key : string
Return values
boolisOnline()
Returns the status.
public
isOnline() : bool
Return values
boolreset()
Resets the intern cache of this class.
public
static reset() : void
setCurrentId()
Sets the current clang id.
public
static setCurrentId(int $id) : void
Parameters
- $id : int
-
Clang id