Documentation

rex_clang
in package

Clang class.

Tags
author

gharlan

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<string|int, self>
Returns an array of all clangs.
getAllIds()  : array<string|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
int

exists()

Checks if the given clang exists.

public static exists(int $id) : bool
Parameters
$id : int

Clang id

Return values
bool

get()

Returns the clang object for the given id.

public static get(int $id) : self|null
Parameters
$id : int

Clang id

Return values
self|null

getAll()

Returns an array of all clangs.

public static getAll([bool $ignoreOfflines = false ]) : array<string|int, self>
Parameters
$ignoreOfflines : bool = false
Return values
array<string|int, self>

getAllIds()

Returns an array of all clang ids.

public static getAllIds([bool $ignoreOfflines = false ]) : array<string|int, int>
Parameters
$ignoreOfflines : bool = false
Return values
array<string|int, int>

getCode()

Returns the lang code.

public getCode() : string
Return values
string

getCurrent()

Returns the current clang object.

public static getCurrent() : self
Return values
self

getCurrentId()

Returns the current clang id.

public static getCurrentId() : int
Return values
int

Current clang id

getId()

Returns the id.

public getId() : int
Return values
int

getName()

Returns the name.

public getName() : string
Return values
string

getPriority()

Returns the priority.

public getPriority() : int
Return values
int

getStartId()

Returns the clang start id.

public static getStartId() : int
Return values
int

getValue()

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
bool

isOnline()

Returns the status.

public isOnline() : bool
Return values
bool

reset()

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

Tags
throws
rex_exception

        
On this page

Search results