Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
g
PHP Class g, kirby
Exibir arquivo
Open project: bastianallgeier/kirby
Class Usage Examples
Public Methods
Method
Description
get
(
mixed
$key
= null,
mixed
$default
= null ) :
mixed
Gets an global value by key
set
(
string
$key
,
mixed
$value
= null )
Sets a global by key
Method Details
get()
static
public
method
Gets an global value by key
static
public
get
(
mixed
$key
= null,
mixed
$default
= null ) :
mixed
$key
mixed
The key to look for. Pass false or null to return the entire globals array.
$default
mixed
Optional default value, which should be returned if no element has been found
return
mixed
set()
static
public
method
Sets a global by key
static
public
set
(
string
$key
,
mixed
$value
= null )
$key
string
The key to define
$value
mixed
The value for the passed key