Documentation » API Reference

Application:

Functions


loader_add_path ($name$path

Alias of Loader::addPath().


loader_box_rewrite ($data

Deprecated.


loader_import ($lib$method 'include'$extension 'php'

Imports the specified library. This is the default function used to
import libraries into your code.


loader_include ($lib$extension 'php'

Includes the specified library.


loader_require ($lib$extension 'php'

Requires the specified library.


loader_return ($lib$extension 'php'

Returns the specified library file.


loader_dl ($lib

Dynamically loads the specified library.


loader_box ($name$parameters = array (), $context 'normal'

Calls the specified box. Alias of Loader::box().


loader_box_get_settings ($name$app

Alias of Loader::getBoxSettings().


loader_box_get_access ($name$app

Alias of Loader::getBoxAccess().


loader_box_allowed ($name$context 'normal'

Alias of Loader::boxAllowed().


loader_form ($name$context 'normal'

Calls the specified form. Alias of Loader::form().


loader_form_get_settings ($name$app

Alias of Loader::getFormSettings().


loader_form_get_access ($name$app

Alias of Loader::getFormAccess().


loader_form_get_fields ($name

Alias of Loader::getFormFields().


loader_form_allowed ($name$context 'normal'

Alias of Loader::formAllowed().


conf () 

Retrieves a global setting value.


conf_set ($key$value

Sets a global setting value.


appconf () 

Retrieves a setting value for the currently active app.


appconf_set ($key$value

Sets a setting value for the currently active app.


appconf_default_settings () 

Loads the default app settings from the conf/settings.ini.php file in
the currently active app. Parses each block like a form's settings.php
file, but instead looks for the 'value' setting for each block. Also
parses the value with template_simple() if any {} braces are found in it.


loader_app () 

Returns the currently active app.


loader_app_enabled ($app

Determines whether the specified app is enabled or disabled. Alias of
Loader::isEnabled().


loader_call () 

  • Access: public

Loads the specified library (parameter 1), and calls the specified static
method (parameter 2), with the specified parameters (the rest of the
parameters), and returns the result. This can be used to call a specific
method or function in a library in a single line of code, for example:


Return to Top