Solves chicken-and-egg problem - need a way to init Horde environment
from application without an active Horde_Registry object.
Page compression will be started (if configured).
Global variables defined:
- $browser: Horde_Browser object - $cli: Horde_Cli object (if 'cli' is true) - $conf: Configuration array - $injector: Horde_Injector object - $language: Language - $notification: Horde_Notification object - $page_output: Horde_PageOutput object - $prefs: Horde_Prefs object - $registry: Horde_Registry object - $session: Horde_Session object
public static appInit ( string $app, array $args = [] ) : Horde_Registry_Application | ||
$app | string | The application to initialize. |
$args | array | Optional arguments:
- admin: (boolean) Require authenticated user to be an admin? DEFAULT: false - authentication: (string) The type of authentication to use: - none: Do not authenticate - fallback: Attempt to authenticate; if failure, then don't auth (@since 2.11.0). - [DEFAULT]: Authenticate; on no auth redirect to login screen - cli: (boolean) Initialize a CLI interface. Setting this to true implicitly sets 'authentication' to 'none' and 'admin' and 'nocompress' to true. DEFAULT: false - nocompress: (boolean) If set, the page will not be compressed. DEFAULT: false - nologintasks: (boolean) If set, don't perform logintasks (never performed if authentication is 'none'). DEFAULT: false - nonotificationinit: (boolean) If set, don't initialize the application handlers for the notification system (@since 2.12.0). - permission: (array) The permission required by the user to access the page. The first element (REQUIRED) is the permission name. The second element (OPTION; defaults to SHOW) is the permission level. - session_cache_limiter: (string) Use this value for the session cache limiter. DEFAULT: Uses the value in the config. - session_control: (string) Special session control limitations: - netscape: TODO; start read/write session - none: Do not start a session - readonly: Start session readonly - [DEFAULT] - Start read/write session - test: (boolean) Is this the test script? If so, we relax several sanity checks and don't load things from the cache. DEFAULT: false - timezone: (boolean) Set the time zone? DEFAULT: false - user_admin: (boolean) Set authentication to an admin user? DEFAULT: false |
Résultat | Horde_Registry_Application | The application object. |