Méthode | Description | |
---|---|---|
clearConstants ( ) | Clears all constants | |
getConstant ( string | |
Returns a constant | |
getConstantNames ( ) : string[] | Returns all constant names | |
getConstants ( ) : |
Returns constants | |
hasConstant ( string | |
Checks whether a constant exists | |
removeConstant ( string | |
Removes a constant | |
setConstant ( string | |
Adds a constant | |
setConstants ( array $constants ) | Sets a collection of constants |
public getConstant ( string | |
||
$nameOrConstant | string | |
constant or name |
Résultat |
public getConstantNames ( ) : string[] | ||
Résultat | string[] |
public getConstants ( ) : |
||
Résultat |
public hasConstant ( string | |
||
$nameOrConstant | string | |
|
Résultat | boolean |
public removeConstant ( string | |
||
$nameOrConstant | string | |
$nameOrConstant constant or name |
public setConstant ( string | |
||
$nameOrConstant | string | |
constant or name |
$value | string |
public setConstants ( array $constants ) | ||
$constants | array |