public static
|
|
|
public static
|
#
getConfig( mixed $key = null, mixed $default = null )
|
|
public static
|
|
|
public static
|
|
|
public static
boolean
|
#
setProperty( string $key, mixed $value )
Sets a property. Changes will not be persisted accross http request
boundaries.
Sets a property. Changes will not be persisted accross http request
boundaries.
Parameters
- $key
- Key of the property
- $value
- Value for the property
Returns
boolean TRUE when an existing value was overridden, otherwise FALSE
Throws
InvalidArgumentException on invalid parameters
|
|
public static
mixed
|
#
getProperty( string $key, mixed $default = null )
Returns a property.
Parameters
- $key
- Key of the property
- $default
- Default value, will be returned if the property isn't set
Returns
mixed The value for $key or $default if $key cannot be found
Throws
InvalidArgumentException on invalid parameters
|
|
public static
boolean
|
#
hasProperty( string $key )
Returns if a property is set.
Returns if a property is set.
Parameters
Returns
boolean TRUE if the key is set, otherwise FALSE
|
|
public static
boolean
|
#
removeProperty( string $key )
Removes a property.
Parameters
Returns
boolean TRUE if the value was found and removed, otherwise FALSE
Throws
InvalidArgumentException on invalid parameters
|
|
public static
boolean
|
#
isSetup( )
Returns if the setup is active.
Returns if the setup is active.
Returns
boolean bool
|
|
public static
boolean
|
#
isBackend( )
Returns if the environment is the backend.
Returns if the environment is the backend.
Returns
boolean bool
|
|
public static
boolean
|
#
isFrontend( )
Returns if the environment is the frontend.
Returns if the environment is the frontend.
Returns
boolean bool
|
|
public static
string
|
|
|
public static
boolean
|
#
isDebugMode( )
Returns if the debug mode is active.
Returns if the debug mode is active.
Returns
boolean bool
|
|
public static
array
|
|
|
public static
boolean
|
#
isSafeMode( )
Returns if the safe mode is active.
Returns if the safe mode is active.
Returns
boolean bool
|
|
public static
string
|
#
getTablePrefix( )
Returns the table prefix.
Returns the table prefix.
Returns
string string
|
|
public static
string
|
#
getTable( string $table )
Adds the table prefix to the table name.
Adds the table prefix to the table name.
Parameters
Returns
string string
|
|
public static
string
|
|
|
public static
null|rex_user
|
#
getUser( )
Returns the current user.
Returns the current user.
Returns
|
|
public static
null|rex_user
|
#
getImpersonator( )
Returns the current impersonator user.
Returns the current impersonator user.
Returns
|
|
public static
null|rex_console_application
|
#
getConsole( )
Returns the console application.
Returns the console application.
Returns
|
|
public static
string
|
#
getServer( null|string $protocol = null )
Returns the server URL.
Parameters
Returns
string string
|
|
public static
string
|
|
|
public static
string
|
|
|
public static
string
|
#
getVersion( string $format = null )
Returns the redaxo version.
Returns the redaxo version.
Parameters
- $format
- See <code><a href="class-rex_formatter.html#_version">rex_formatter::version()</a></code>
Returns
string string
|
|
public static
false|string
|
#
getVersionHash( string $path )
Returns the current git version hash for the given path.
Returns the current git version hash for the given path.
Parameters
- $path
- A local filesystem path
Returns
false|string false|string
|
|
public static
string
|
#
getAccesskey( string $title, string $key )
Returns the title tag and if the property "use_accesskeys" is true, the
accesskey tag.
Returns the title tag and if the property "use_accesskeys" is true, the
accesskey tag.
Parameters
- $title
- Title
- $key
- Key for the accesskey
Returns
string string
|
|
public static
integer
|
|
|
public static
integer
|
#
getDirPerm( )
Returns the dir perm.
Returns
integer int
|
|