![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| log ($msg, $append_crlf=true) | |
| outputData ($data, $command='_default') | |
| runPostinstallScripts (&$scripts) | |
| setConfig (&$config) | |
| userDialog ($command, $prompts, $types=array(), $defaults=array()) | |
| Public Member Functions inherited from PEAR | |
| __call ($method, $arguments) | |
| __construct ($error_class=null) | |
| _checkDelExpect ($error_code) | |
| _PEAR () | |
| delExpect ($error_code) | |
| expectError ($code=' *') | |
| PEAR ($error_class=null) | |
| popExpect () | |
Static Public Member Functions | |
| static | addTempFile ($file) |
| static | isIncludeable ($path) |
| static & | setFrontendClass ($uiclass) |
| static & | setFrontendObject ($uiobject) |
| static & | singleton ($type=null) |
| Static Public Member Functions inherited from PEAR | |
| static | __callStatic ($method, $arguments) |
| static | getSourceDateEpoch () |
| static & | getStaticProperty ($class, $var) |
| static | isError ($data, $code=null) |
| static | loadExtension ($ext) |
| static | registerShutdownFunc ($func, $args=array()) |
| static | staticPopErrorHandling () |
| static | staticPushErrorHandling ($mode, $options=null) |
Additional Inherited Members | |
| Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_handler = '' | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
| Static Protected Member Functions inherited from PEAR | |
| static | _popErrorHandling ($object) |
| static | _pushErrorHandling ($object, $mode, $options=null) |
| static | _raiseError ($object, $message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| static | _setErrorHandling ( $object, $mode=null, $options=null) |
| static | _throwError ($object, $message=null, $code=null, $userinfo=null) |
| Static Protected Attributes inherited from PEAR | |
| static | $bivalentMethods |
Definition at line 45 of file Frontend.php.
|
static |
This can be overridden to allow session-based temporary file management
By default, all files are deleted at the end of a session. The web installer needs to be able to sustain a list over many sessions in order to support user interaction with install scripts
Definition at line 163 of file Frontend.php.
References $GLOBALS.
Referenced by PEAR_Common\addTempFile().
|
static |
| string | $path | relative or absolute include path |
Definition at line 134 of file Frontend.php.
Referenced by setFrontendClass().
| log | ( | $msg, | |
| $append_crlf = true ) |
Log an action
| string | $msg | the message to log |
| boolean | $append_crlf |
Reimplemented in PEAR_Frontend_CLI.
Definition at line 176 of file Frontend.php.
| outputData | ( | $data, | |
| $command = '_default' ) |
Display human-friendly output formatted depending on the $command parameter.
This should be able to handle basic output data with no command
| mixed | $data | data structure containing the information to display |
| string | $command | command from which this method was called @abstract |
Reimplemented in PEAR_Frontend_CLI.
Definition at line 199 of file Frontend.php.
References $command.
| runPostinstallScripts | ( | & | $scripts | ) |
Run a post-installation script
| array | $scripts | array of post-install scripts @abstract |
Reimplemented in PEAR_Frontend_CLI.
Definition at line 186 of file Frontend.php.
| setConfig | ( | & | $config | ) |
|
static |
Set the frontend class that will be used by calls to singleton()
Frontends are expected to conform to the PEAR naming standard of _ => DIRECTORY_SEPARATOR (PEAR_Frontend_CLI is in PEAR/Frontend/CLI.php)
| string | $uiclass | full class name |
Definition at line 73 of file Frontend.php.
References $GLOBALS, and isIncludeable().
Referenced by PEAR_Command\setFrontendClass(), and singleton().
|
static |
Set the frontend class that will be used by calls to singleton()
Frontends are expected to be a descendant of PEAR_Frontend
| PEAR_Frontend |
Definition at line 112 of file Frontend.php.
References $GLOBALS.
|
static |
Retrieve the frontend object
Definition at line 51 of file Frontend.php.
References $GLOBALS, and setFrontendClass().
Referenced by PEAR_Registry\_addPackage2(), PEAR_Command\getFrontendObject(), PEAR_REST_10\listAll(), PEAR_Common\log(), and PEAR_PackageFile_v2\runPostinstallScripts().
| userDialog | ( | $command, | |
| $prompts, | |||
| $types = array(), | |||
| $defaults = array() ) |
Display a modal form dialog and return the given input
A frontend that requires multiple requests to retrieve and process data must take these needs into account, and implement the request handling code.
| string | $command | command from which this method was called |
| array | $prompts | associative array. keys are the input field names and values are the description |
| array | $types | array of input field types (text, password, etc.) keys have to be the same like in $prompts |
| array | $defaults | array of default values. again keys have to be the same like in $prompts. Do not depend on a default value being set. |
Definition at line 220 of file Frontend.php.
References $command.