rex_null_addon
extends rex_null_package
in package
implements
rex_addon_interface
Represents a null addon.
Tags
Table of Contents
Interfaces
- rex_addon_interface
- Interface for addons.
Methods
- getAddon() : rex_null_addon
- Returns the related Addon.
- getAssetsPath() : non-empty-string
- Returns the assets path.
- getAssetsUrl() : non-empty-string
- Returns the assets url.
- getAuthor() : string|null
- Returns the author.
- getAvailablePlugins() : array<string, rex_plugin>
- Returns the available plugins.
- getCachePath() : non-empty-string
- Returns the cache path.
- getConfig() : mixed
- getDataPath() : non-empty-string
- Returns the data path.
- getInstalledPlugins() : array<string, rex_plugin>
- Returns the installed plugins.
- getName() : non-empty-string
- Returns the name of the package.
- getPackageId() : non-empty-string|null
- Returns the package ID.
- getPath() : non-empty-string
- Returns the base path.
- getPlugin() : rex_null_plugin
- Returns the child plugin by the given name.
- getProperty() : mixed
- Returns a property.
- getRegisteredPlugins() : array<string, rex_plugin>
- Returns the registered plugins.
- getSupportPage() : string|null
- Returns the supportpage.
- getSystemPlugins() : array<string, rex_plugin>
- Returns the system plugins.
- getType() : mixed
- getVersion() : string
- Returns the version.
- hasConfig() : bool
- hasProperty() : bool
- Returns if a property is set.
- i18n() : non-empty-string
- Adds the package prefix to the given key and returns the translation for it.
- includeFile() : mixed
- Includes a file in the package context.
- isAvailable() : bool
- Returns if the package is available (activated and installed).
- isInstalled() : bool
- Returns if the package is installed.
- isSystemPackage() : bool
- Returns if it is a system package.
- pluginExists() : bool
- Returns if the plugin exists.
- removeConfig() : bool
- removeProperty() : void
- Removes a property.
- setConfig() : bool
- setProperty() : void
- Sets a property.
Methods
getAddon()
Returns the related Addon.
public
getAddon() : rex_null_addon
Return values
rex_null_addongetAssetsPath()
Returns the assets path.
public
getAssetsPath([mixed $file = '' ]) : non-empty-string
Parameters
- $file : mixed = ''
-
File
Return values
non-empty-stringgetAssetsUrl()
Returns the assets url.
public
getAssetsUrl([mixed $file = '' ]) : non-empty-string
Parameters
- $file : mixed = ''
-
File
Return values
non-empty-stringgetAuthor()
Returns the author.
public
getAuthor([mixed $default = null ]) : string|null
Parameters
- $default : mixed = null
-
Default value, will be returned if the property isn't set
Return values
string|nullgetAvailablePlugins()
Returns the available plugins.
public
getAvailablePlugins() : array<string, rex_plugin>
Return values
array<string, rex_plugin>getCachePath()
Returns the cache path.
public
getCachePath([mixed $file = '' ]) : non-empty-string
Parameters
- $file : mixed = ''
-
File
Return values
non-empty-stringgetConfig()
public
getConfig([mixed $key = null ][, mixed $default = null ]) : mixed
Parameters
- $key : mixed = null
-
The associated key
- $default : mixed = null
-
Default return value if no associated-value can be found
Return values
mixed —the value for $key or $default if $key cannot be found in the given $namespace
getDataPath()
Returns the data path.
public
getDataPath([mixed $file = '' ]) : non-empty-string
Parameters
- $file : mixed = ''
-
File
Return values
non-empty-stringgetInstalledPlugins()
Returns the installed plugins.
public
getInstalledPlugins() : array<string, rex_plugin>
Return values
array<string, rex_plugin>getName()
Returns the name of the package.
public
getName() : non-empty-string
Return values
non-empty-string —Name
getPackageId()
Returns the package ID.
public
getPackageId() : non-empty-string|null
Return values
non-empty-string|nullgetPath()
Returns the base path.
public
getPath([mixed $file = '' ]) : non-empty-string
Parameters
- $file : mixed = ''
-
File
Return values
non-empty-stringgetPlugin()
Returns the child plugin by the given name.
public
getPlugin(mixed $plugin) : rex_null_plugin
Parameters
- $plugin : mixed
-
Name of the plugin
Return values
rex_null_plugingetProperty()
Returns a property.
public
getProperty(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
-
Key of the property
- $default : mixed = null
-
Default value, will be returned if the property isn't set
getRegisteredPlugins()
Returns the registered plugins.
public
getRegisteredPlugins() : array<string, rex_plugin>
Return values
array<string, rex_plugin>getSupportPage()
Returns the supportpage.
public
getSupportPage([mixed $default = null ]) : string|null
Parameters
- $default : mixed = null
-
Default value, will be returned if the property isn't set
Return values
string|nullgetSystemPlugins()
Returns the system plugins.
public
getSystemPlugins() : array<string, rex_plugin>
Return values
array<string, rex_plugin>getType()
public
getType() : mixed
getVersion()
Returns the version.
public
getVersion([mixed $format = null ]) : string
Parameters
Return values
stringhasConfig()
public
hasConfig([mixed $key = null ]) : bool
Parameters
- $key : mixed = null
-
The associated key
Return values
boolhasProperty()
Returns if a property is set.
public
hasProperty(mixed $key) : bool
Parameters
- $key : mixed
-
Key of the property
Return values
booli18n()
Adds the package prefix to the given key and returns the translation for it.
public
i18n(mixed $key, mixed ...$replacements) : non-empty-string
Parameters
- $key : mixed
-
Key
- $replacements : mixed
-
A arbritary number of strings used for interpolating within the resolved messag
Return values
non-empty-string —Translation for the key
includeFile()
Includes a file in the package context.
public
includeFile(mixed $file[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $file : mixed
-
Filename
- $context : array<string|int, mixed> = []
-
Context values, available as variables in given file
isAvailable()
Returns if the package is available (activated and installed).
public
isAvailable() : bool
Return values
boolisInstalled()
Returns if the package is installed.
public
isInstalled() : bool
Return values
boolisSystemPackage()
Returns if it is a system package.
public
isSystemPackage() : bool
Return values
boolpluginExists()
Returns if the plugin exists.
public
pluginExists(mixed $plugin) : bool
Parameters
- $plugin : mixed
-
Name of the plugin
Return values
boolremoveConfig()
public
removeConfig(mixed $key) : bool
Parameters
- $key : mixed
-
The associated key
Return values
boolremoveProperty()
Removes a property.
public
removeProperty(mixed $key) : void
Parameters
- $key : mixed
-
Key of the property
setConfig()
public
setConfig(mixed $key[, mixed $value = null ]) : bool
Parameters
- $key : mixed
-
The associated key or an associative array of key/value pairs
- $value : mixed = null
-
The value to save
Return values
bool —TRUE when an existing value was overridden, otherwise FALSE
setProperty()
Sets a property.
public
setProperty(mixed $key, mixed $value) : void
Parameters
- $key : mixed
-
Key of the property
- $value : mixed
-
New value for the property