Class: I2CE (Development): Difference between revisions
(Created page with '{{otherversions|Class: I2CE}} This article describes the class ''I2CE'' . *Location: Part of the module I2CE in the package [https://launc…') |
No edit summary |
||
Line 24: | Line 24: | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L160 i2ce/lib/I2CE.php] on line 160 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L160 i2ce/lib/I2CE.php] on line 160 | ||
*Type: static protected $site_initialized | *Type: static protected $site_initialized | ||
===$ob_level=== | |||
The ooutput buffer level after initializion | |||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L613 i2ce/lib/I2CE.php] on line 613 | |||
*Type: static public $ob_level | |||
===$updateStart=== | ===$updateStart=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L675 i2ce/lib/I2CE.php] on line 675 | ||
*Type: protected $updateStart | *Type: protected $updateStart | ||
===$storage=== | ===$storage=== | ||
I2CE_MagicData | I2CE_MagicData | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L820 i2ce/lib/I2CE.php] on line 820 | ||
*Type: static protected static $storage | *Type: static protected static $storage | ||
===$stored_messages=== | ===$stored_messages=== | ||
An array of the notice/warning messages received for this session array $stored_messages | An array of the notice/warning messages received for this session array $stored_messages | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L830 i2ce/lib/I2CE.php] on line 830 | ||
*Type: static protected static $stored_messages | *Type: static protected static $stored_messages | ||
===$errorType=== | ===$errorType=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L833 i2ce/lib/I2CE.php] on line 833 | ||
*Type: static public $errorType | *Type: static public $errorType | ||
===$noticeErrors=== | ===$noticeErrors=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L849 i2ce/lib/I2CE.php] on line 849 | ||
*Type: static public $noticeErrors | *Type: static public $noticeErrors | ||
===$warningErrors=== | ===$warningErrors=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L850 i2ce/lib/I2CE.php] on line 850 | ||
*Type: static public $warningErrors | *Type: static public $warningErrors | ||
===$ignoreErrorsFromFilesMatching=== | ===$ignoreErrorsFromFilesMatching=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L853 i2ce/lib/I2CE.php] on line 853 | ||
*Type: static public $ignoreErrorsFromFilesMatching | *Type: static public $ignoreErrorsFromFilesMatching | ||
===$ignoreErrors=== | ===$ignoreErrors=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L854 i2ce/lib/I2CE.php] on line 854 | ||
*Type: static public $ignoreErrors | *Type: static public $ignoreErrors | ||
===$supress=== | ===$supress=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L864 i2ce/lib/I2CE.php] on line 864 | ||
*Type: protected $supress | *Type: protected $supress | ||
===$site_warnings=== | ===$site_warnings=== | ||
Count of the number of erros and warings received when the site is not initialized @param static protected boolean $site_warnings | Count of the number of erros and warings received when the site is not initialized @param static protected boolean $site_warnings | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L894 i2ce/lib/I2CE.php] on line 894 | ||
*Type: static protected $site_warnings | *Type: static protected $site_warnings | ||
===$error_num=== | ===$error_num=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L904 i2ce/lib/I2CE.php] on line 904 | ||
*Type: protected $error_num | *Type: protected $error_num | ||
===$errorHandler=== | ===$errorHandler=== | ||
Optional error handler callback. | Optional error handler callback. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L909 i2ce/lib/I2CE.php] on line 909 | ||
*Type: static private $errorHandler | *Type: static private $errorHandler | ||
===$started_errors=== | ===$started_errors=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L927 i2ce/lib/I2CE.php] on line 927 | ||
*Type: protected $started_errors | *Type: protected $started_errors | ||
===$errorImage=== | ===$errorImage=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L928 i2ce/lib/I2CE.php] on line 928 | ||
*Type: protected $errorImage | *Type: protected $errorImage | ||
===$errorStart=== | ===$errorStart=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1245 i2ce/lib/I2CE.php] on line 1245 | ||
*Type: protected $errorStart | *Type: protected $errorStart | ||
===$badness=== | ===$badness=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1400 i2ce/lib/I2CE.php] on line 1400 | ||
*Type: protected $badness | *Type: protected $badness | ||
===$email=== | ===$email=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1437 i2ce/lib/I2CE.php] on line 1437 | ||
*Type: static protected $email | *Type: static protected $email | ||
===$fileSearch=== | ===$fileSearch=== | ||
I2CE_FileSearch $fileSearch | I2CE_FileSearch $fileSearch | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1611 i2ce/lib/I2CE.php] on line 1611 | ||
*Type: static protected static $fileSearch | *Type: static protected static $fileSearch | ||
===$trace_depth=== | ===$trace_depth=== | ||
integer $trace_depth. Defaults to 1. The number of previous methods to report when an error message is developed. Set to a negative number to report all, or 0 to report none. | integer $trace_depth. Defaults to 1. The number of previous methods to report when an error message is developed. Set to a negative number to report all, or 0 to report none. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1618 i2ce/lib/I2CE.php] on line 1618 | ||
*Type: static protected static $trace_depth | *Type: static protected static $trace_depth | ||
Line 110: | Line 115: | ||
===allSystemsAreGoGo()=== | ===allSystemsAreGoGo()=== | ||
Get the system status. http://www.ursula1000.com/ | Get the system status. http://www.ursula1000.com/ | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L694 i2ce/lib/I2CE.php] on line 694 | ||
*Signature: static public function allSystemsAreGoGo($site_module_file,$check_time) | *Signature: static public function allSystemsAreGoGo($site_module_file,$check_time) | ||
*Parameters: | *Parameters: | ||
Line 118: | Line 123: | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>'gogo' means we are good. 'needs_installation' means we need to initialize. 'needs_upgrade' | *Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>'gogo' means we are good. 'needs_installation' means we need to initialize. 'needs_upgrade' | ||
===bringUpSystem()=== | ===bringUpSystem()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L616 i2ce/lib/I2CE.php] on line 616 | ||
*Signature: static protected function bringUpSystem($site_module_file) | *Signature: static protected function bringUpSystem($site_module_file) | ||
*Parameters: | *Parameters: | ||
Line 131: | Line 136: | ||
===getAccessedBaseURL()=== | ===getAccessedBaseURL()=== | ||
Returns the base url from which the site was accessed. If no .htaccess is used, ths will include the index.php. If rewrites are used (via .htacces) this will no include the index.php. Point is... this is the base url from which the site was accessed, no questions asked. This of course assumes that you are now accessing the site via the command line | Returns the base url from which the site was accessed. If no .htaccess is used, ths will include the index.php. If rewrites are used (via .htacces) this will no include the index.php. Point is... this is the base url from which the site was accessed, no questions asked. This of course assumes that you are now accessing the site via the command line | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L430 i2ce/lib/I2CE.php] on line 430 | ||
*Signature: static public function getAccessedBaseURL($include_http) | *Signature: static public function getAccessedBaseURL($include_http) | ||
*Parameters: | *Parameters: | ||
Line 139: | Line 144: | ||
===getConfig()=== | ===getConfig()=== | ||
Get the configuration storage @param string $instance. Defaults to 'default' | Get the configuration storage @param string $instance. Defaults to 'default' | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L794 i2ce/lib/I2CE.php] on line 794 | ||
*Signature: static public function getConfig() | *Signature: static public function getConfig() | ||
*Returns: [[Class: I2CE_MagicData (Development) | I2CE_MagicData]] | *Returns: [[Class: I2CE_MagicData (Development) | I2CE_MagicData]] | ||
===getFileSearch()=== | ===getFileSearch()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L811 i2ce/lib/I2CE.php] on line 811 | ||
*Signature: static public function getFileSearch() | *Signature: static public function getFileSearch() | ||
===getPrevMethod()=== | ===getPrevMethod()=== | ||
Parse the debug backtrace to get the method that raised the error. | Parse the debug backtrace to get the method that raised the error. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1640 i2ce/lib/I2CE.php] on line 1640 | ||
*Signature: static protected function getPrevMethod($debug,$start_depth,$trace_depth) | *Signature: static protected function getPrevMethod($debug,$start_depth,$trace_depth) | ||
*Parameters: | *Parameters: | ||
Line 158: | Line 163: | ||
===getRuntimeVariable()=== | ===getRuntimeVariable()=== | ||
Gets a runtime variable. For the CLI is the is from the environment which may be overwridden by a ---long-option from the command line. Otherwise it is set by SetEnv in a .htaccess file (which is stored in $_SERVER) | Gets a runtime variable. For the CLI is the is from the environment which may be overwridden by a ---long-option from the command line. Otherwise it is set by SetEnv in a .htaccess file (which is stored in $_SERVER) | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L362 i2ce/lib/I2CE.php] on line 362 | ||
*Signature: static public function getRuntimeVariable($var,$val) | *Signature: static public function getRuntimeVariable($var,$val) | ||
*Parameters: | *Parameters: | ||
Line 182: | Line 187: | ||
*Signature: static public function getUserAccessProtocol() | *Signature: static public function getUserAccessProtocol() | ||
===handleError()=== | ===handleError()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L867 i2ce/lib/I2CE.php] on line 867 | ||
*Signature: public function handleError($err_no,$err_string,$err_file,$err_line,$err_context) | *Signature: public function handleError($err_no,$err_string,$err_file,$err_line,$err_context) | ||
*Parameters: | *Parameters: | ||
Line 195: | Line 200: | ||
===hasWarnings()=== | ===hasWarnings()=== | ||
See if there were any warning messages set before the site was initialized | See if there were any warning messages set before the site was initialized | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L900 i2ce/lib/I2CE.php] on line 900 | ||
*Signature: static public function hasWarnings() | *Signature: static public function hasWarnings() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===initialize()=== | ===initialize()=== | ||
Gets the core system going. @deprecated since version 4.0.3 | Gets the core system going. @deprecated since version 4.0.3 | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L458 i2ce/lib/I2CE.php] on line 458 | ||
*Signature: static public function initialize($db_user,$db_pass,$db_name,$user_access_init,$site_module_file,$bring_up_system) | *Signature: static public function initialize($db_user,$db_pass,$db_name,$user_access_init,$site_module_file,$bring_up_system) | ||
*Parameters: | *Parameters: | ||
Line 213: | Line 218: | ||
===initializeDSN()=== | ===initializeDSN()=== | ||
Gets the core system going. | Gets the core system going. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L514 i2ce/lib/I2CE.php] on line 514 | ||
*Signature: static public function initializeDSN($dsn,$user_access_init,$site_module_file,$bring_up_system) | *Signature: static public function initializeDSN($dsn,$user_access_init,$site_module_file,$bring_up_system) | ||
*Parameters: | *Parameters: | ||
Line 223: | Line 228: | ||
*Returns: boolean.<br/>True on sucess | *Returns: boolean.<br/>True on sucess | ||
===longExecution()=== | ===longExecution()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L761 i2ce/lib/I2CE.php] on line 761 | ||
*Signature: static public function longExecution($limits,$notice) | *Signature: static public function longExecution($limits,$notice) | ||
*Parameters: | *Parameters: | ||
Line 229: | Line 234: | ||
***Default Value: null | ***Default Value: null | ||
**$notice | **$notice | ||
***Default Value: | ***Default Value: false | ||
===pearError()=== | ===pearError()=== | ||
Check to see if a object is a pear error and raise an error if it is. | Check to see if a object is a pear error and raise an error if it is. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1686 i2ce/lib/I2CE.php] on line 1686 | ||
*Signature: static public function pearError($obj,$message,$type,$redirect) | *Signature: static public function pearError($obj,$message,$type,$redirect) | ||
*Parameters: | *Parameters: | ||
Line 243: | Line 248: | ||
===popErrorHandler()=== | ===popErrorHandler()=== | ||
Pop an error handler off of the stack. | Pop an error handler off of the stack. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L923 i2ce/lib/I2CE.php] on line 923 | ||
*Signature: static public function popErrorHandler() | *Signature: static public function popErrorHandler() | ||
*Returns: $callback<br/>the callback popped off the stack | *Returns: $callback<br/>the callback popped off the stack | ||
===pushErrorHandler()=== | ===pushErrorHandler()=== | ||
Push an error handler onto the stack. @param $callback | Push an error handler onto the stack. @param $callback | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L915 i2ce/lib/I2CE.php] on line 915 | ||
*Signature: static public function pushErrorHandler($callback) | *Signature: static public function pushErrorHandler($callback) | ||
*Parameters: | *Parameters: | ||
Line 254: | Line 259: | ||
===raiseError()=== | ===raiseError()=== | ||
Raise an error and redirect the user for any critical errors. The default redirect will go to the home page for the site. @param string/mixed $message The error message. | Raise an error and redirect the user for any critical errors. The default redirect will go to the home page for the site. @param string/mixed $message The error message. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1462 i2ce/lib/I2CE.php] on line 1462 | ||
*Signature: static public function raiseError($message,$type,$redirect) | *Signature: static public function raiseError($message,$type,$redirect) | ||
*Parameters: | *Parameters: | ||
Line 262: | Line 267: | ||
***Default Value: E_USER_NOTICE | ***Default Value: E_USER_NOTICE | ||
** [http://www.php.net/manual/en/language.types.string.php string ] $redirect <br/>The page to redirect to for critical errors. @global array | ** [http://www.php.net/manual/en/language.types.string.php string ] $redirect <br/>The page to redirect to for critical errors. @global array | ||
***Default Value: "" | |||
===raiseMessage()=== | |||
Raise an error message, but don't display any extra trace messages to keep the log file short when the trace isn't necessary. @param string/mixed $message The error message. | |||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1446 i2ce/lib/I2CE.php] on line 1446 | |||
*Signature: static public function raiseMessage($message,$type,$redirect) | |||
*Parameters: | |||
**$message | |||
***Default Value: null | |||
** integer $type <br/>The error type. | |||
***Default Value: E_USER_NOTICE | |||
** [http://www.php.net/manual/en/language.types.string.php string ] $redirect <br/>The page to redirect to for critical errors. | |||
***Default Value: "" | ***Default Value: "" | ||
===resetFileSearch()=== | ===resetFileSearch()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L347 i2ce/lib/I2CE.php] on line 347 | ||
*Signature: public function resetFileSearch() | *Signature: public function resetFileSearch() | ||
===rewrittenURLs()=== | ===rewrittenURLs()=== | ||
returns true if the url's have been written. false if not | returns true if the url's have been written. false if not | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L410 i2ce/lib/I2CE.php] on line 410 | ||
*Signature: static public function rewrittenURLs() | *Signature: static public function rewrittenURLs() | ||
===setConfig()=== | ===setConfig()=== | ||
Sets an instance magic data object @param I2CE_MagicData $magicdata | Sets an instance magic data object @param I2CE_MagicData $magicdata | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L803 i2ce/lib/I2CE.php] on line 803 | ||
*Signature: static public function setConfig($magicData) | *Signature: static public function setConfig($magicData) | ||
*Parameters: | *Parameters: | ||
Line 278: | Line 294: | ||
===setTraceDepth()=== | ===setTraceDepth()=== | ||
Set the trace depth used in reporting error messages | Set the trace depth used in reporting error messages | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L1629 i2ce/lib/I2CE.php] on line 1629 | ||
*Signature: static public function setTraceDepth($depth) | *Signature: static public function setTraceDepth($depth) | ||
*Parameters: | *Parameters: | ||
Line 301: | Line 317: | ||
===setupDatabaseReferences()=== | ===setupDatabaseReferences()=== | ||
Setup the references to database names in magic data | Setup the references to database names in magic data | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L392 i2ce/lib/I2CE.php] on line 392 | ||
*Signature: static protected function setupDatabaseReferences($user_db) | *Signature: static protected function setupDatabaseReferences($user_db) | ||
*Parameters: | *Parameters: | ||
Line 308: | Line 324: | ||
===setupFileSearch()=== | ===setupFileSearch()=== | ||
Create and populate the file search | Create and populate the file search | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L320 i2ce/lib/I2CE.php] on line 320 | ||
*Signature: static public function setupFileSearch($paths,$clear_cache) | *Signature: static public function setupFileSearch($paths,$clear_cache) | ||
*Parameters: | *Parameters: | ||
Line 317: | Line 333: | ||
===setupMagicData()=== | ===setupMagicData()=== | ||
Creates the magic data instance. Sets the mafic data storage mechanisms to be used. | Creates the magic data instance. Sets the mafic data storage mechanisms to be used. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE.php#L275 i2ce/lib/I2CE.php] on line 275 | ||
*Signature: static | *Signature: static public function setupMagicData($set_config,$replace) | ||
*Parameters: | |||
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $set_config <br/>Defaults to false meaning we dont replace the magic data instance | |||
***Default Value: true | |||
**$replace | |||
***Default Value: false | |||
*Returns: [[Class: I2CE_MagicData (Development) | I2CE_MagicData]]<br/>on success, null on failure | |||
===setupSession()=== | ===setupSession()=== | ||
Setup the session variables | Setup the session variables |
Revision as of 08:52, 27 May 2010
This article describes the class I2CE .
- Location: Part of the module I2CE in the package I2CE 4.0-dev
- Source: Defined in the file lib/I2CE.php on line 44
This class mainly handles throwing errors from withing I2CE
Variables
$userAccess
I2CE_UserAccess_Mechanism $userAccess the user access mechanism
- Defined in i2ce/lib/I2CE.php on line 51
- Type: static protected protected $userAccess
$userAccessProtocol
string $userAccessProtocol the user access class
- Defined in i2ce/lib/I2CE.php on line 57
- Type: static protected protected $userAccessProtocol
$userAccessInit
array $userAccessInit os string the user access initialization strings
- Defined in i2ce/lib/I2CE.php on line 62
- Type: static protected protected $userAccessInit
$site_initialized
True if the site has been initalized. @param static protected boolean $site_initalized
- Defined in i2ce/lib/I2CE.php on line 160
- Type: static protected $site_initialized
$ob_level
The ooutput buffer level after initializion
- Defined in i2ce/lib/I2CE.php on line 613
- Type: static public $ob_level
$updateStart
- Defined in i2ce/lib/I2CE.php on line 675
- Type: protected $updateStart
$storage
I2CE_MagicData
- Defined in i2ce/lib/I2CE.php on line 820
- Type: static protected static $storage
$stored_messages
An array of the notice/warning messages received for this session array $stored_messages
- Defined in i2ce/lib/I2CE.php on line 830
- Type: static protected static $stored_messages
$errorType
- Defined in i2ce/lib/I2CE.php on line 833
- Type: static public $errorType
$noticeErrors
- Defined in i2ce/lib/I2CE.php on line 849
- Type: static public $noticeErrors
$warningErrors
- Defined in i2ce/lib/I2CE.php on line 850
- Type: static public $warningErrors
$ignoreErrorsFromFilesMatching
- Defined in i2ce/lib/I2CE.php on line 853
- Type: static public $ignoreErrorsFromFilesMatching
$ignoreErrors
- Defined in i2ce/lib/I2CE.php on line 854
- Type: static public $ignoreErrors
$supress
- Defined in i2ce/lib/I2CE.php on line 864
- Type: protected $supress
$site_warnings
Count of the number of erros and warings received when the site is not initialized @param static protected boolean $site_warnings
- Defined in i2ce/lib/I2CE.php on line 894
- Type: static protected $site_warnings
$error_num
- Defined in i2ce/lib/I2CE.php on line 904
- Type: protected $error_num
$errorHandler
Optional error handler callback.
- Defined in i2ce/lib/I2CE.php on line 909
- Type: static private $errorHandler
$started_errors
- Defined in i2ce/lib/I2CE.php on line 927
- Type: protected $started_errors
$errorImage
- Defined in i2ce/lib/I2CE.php on line 928
- Type: protected $errorImage
$errorStart
- Defined in i2ce/lib/I2CE.php on line 1245
- Type: protected $errorStart
$badness
- Defined in i2ce/lib/I2CE.php on line 1400
- Type: protected $badness
- Defined in i2ce/lib/I2CE.php on line 1437
- Type: static protected $email
$fileSearch
I2CE_FileSearch $fileSearch
- Defined in i2ce/lib/I2CE.php on line 1611
- Type: static protected static $fileSearch
$trace_depth
integer $trace_depth. Defaults to 1. The number of previous methods to report when an error message is developed. Set to a negative number to report all, or 0 to report none.
- Defined in i2ce/lib/I2CE.php on line 1618
- Type: static protected static $trace_depth
Methods
allSystemsAreGoGo()
Get the system status. http://www.ursula1000.com/
- Defined in i2ce/lib/I2CE.php on line 694
- Signature: static public function allSystemsAreGoGo($site_module_file,$check_time)
- Parameters:
- $site_module_file
- $check_time
- Default Value: false
- Returns: string
'gogo' means we are good. 'needs_installation' means we need to initialize. 'needs_upgrade'
bringUpSystem()
- Defined in i2ce/lib/I2CE.php on line 616
- Signature: static protected function bringUpSystem($site_module_file)
- Parameters:
- $site_module_file
dbConnect()
connect to the database
- Defined in i2ce/lib/I2CE.php on line 187
- Signature: static protected function dbConnect($dsn)
- Parameters:
- string $dsn
- Returns: true
on sucess
getAccessedBaseURL()
Returns the base url from which the site was accessed. If no .htaccess is used, ths will include the index.php. If rewrites are used (via .htacces) this will no include the index.php. Point is... this is the base url from which the site was accessed, no questions asked. This of course assumes that you are now accessing the site via the command line
- Defined in i2ce/lib/I2CE.php on line 430
- Signature: static public function getAccessedBaseURL($include_http)
- Parameters:
- $include_http
- Default Value: true
- $include_http
- Returns: string
getConfig()
Get the configuration storage @param string $instance. Defaults to 'default'
- Defined in i2ce/lib/I2CE.php on line 794
- Signature: static public function getConfig()
- Returns: I2CE_MagicData
getFileSearch()
- Defined in i2ce/lib/I2CE.php on line 811
- Signature: static public function getFileSearch()
getPrevMethod()
Parse the debug backtrace to get the method that raised the error.
- Defined in i2ce/lib/I2CE.php on line 1640
- Signature: static protected function getPrevMethod($debug,$start_depth,$trace_depth)
- Parameters:
- array $debug
- $start_depth
- Default Value: 1
- $trace_depth
- Default Value: 1
- Returns: string
getRuntimeVariable()
Gets a runtime variable. For the CLI is the is from the environment which may be overwridden by a ---long-option from the command line. Otherwise it is set by SetEnv in a .htaccess file (which is stored in $_SERVER)
- Defined in i2ce/lib/I2CE.php on line 362
- Signature: static public function getRuntimeVariable($var,$val)
- Parameters:
getUserAccess()
Get the user access mechanism
- Defined in i2ce/lib/I2CE.php on line 133
- Signature: static public function getUserAccess()
- Returns: I2CE_UserAccess_Mechansim
getUserAccessInit()
Set the user access mechanism initialization string
- Defined in i2ce/lib/I2CE.php on line 104
- Signature: static public function getUserAccessInit($protocol)
- Parameters:
- string $protocol
If null, the default, then we get the init string for the currently registered protocol.- Default Value: null
- string $protocol
- Returns: string
getUserAccessProtocol()
Gets the registered user access protocol
- Defined in i2ce/lib/I2CE.php on line 67
- Signature: static public function getUserAccessProtocol()
handleError()
- Defined in i2ce/lib/I2CE.php on line 867
- Signature: public function handleError($err_no,$err_string,$err_file,$err_line,$err_context)
- Parameters:
- $err_no
- $err_string
- $err_file
- Default Value: false
- $err_line
- Default Value: false
- $err_context
- Default Value: false
hasWarnings()
See if there were any warning messages set before the site was initialized
- Defined in i2ce/lib/I2CE.php on line 900
- Signature: static public function hasWarnings()
- Returns: boolean
initialize()
Gets the core system going. @deprecated since version 4.0.3
- Defined in i2ce/lib/I2CE.php on line 458
- Signature: static public function initialize($db_user,$db_pass,$db_name,$user_access_init,$site_module_file,$bring_up_system)
- Parameters:
- string $db_user
the database user - string $db_pass
the database user's password - string $db_name
the name of the database all data is stored in - string $user_access_init
the init string for the user access mechanism - string $site_module_file
the configttion file for the site module - $bring_up_system
- Default Value: true
- string $db_user
- Returns: boolean.
True on sucess
initializeDSN()
Gets the core system going.
- Defined in i2ce/lib/I2CE.php on line 514
- Signature: static public function initializeDSN($dsn,$user_access_init,$site_module_file,$bring_up_system)
- Parameters:
- Returns: boolean.
True on sucess
longExecution()
- Defined in i2ce/lib/I2CE.php on line 761
- Signature: static public function longExecution($limits,$notice)
- Parameters:
- $limits
- Default Value: null
- $notice
- Default Value: false
- $limits
pearError()
Check to see if a object is a pear error and raise an error if it is.
- Defined in i2ce/lib/I2CE.php on line 1686
- Signature: static public function pearError($obj,$message,$type,$redirect)
- Parameters:
popErrorHandler()
Pop an error handler off of the stack.
- Defined in i2ce/lib/I2CE.php on line 923
- Signature: static public function popErrorHandler()
- Returns: $callback
the callback popped off the stack
pushErrorHandler()
Push an error handler onto the stack. @param $callback
- Defined in i2ce/lib/I2CE.php on line 915
- Signature: static public function pushErrorHandler($callback)
- Parameters:
- $callback
raiseError()
Raise an error and redirect the user for any critical errors. The default redirect will go to the home page for the site. @param string/mixed $message The error message.
- Defined in i2ce/lib/I2CE.php on line 1462
- Signature: static public function raiseError($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors. @global array- Default Value: ""
- $message
raiseMessage()
Raise an error message, but don't display any extra trace messages to keep the log file short when the trace isn't necessary. @param string/mixed $message The error message.
- Defined in i2ce/lib/I2CE.php on line 1446
- Signature: static public function raiseMessage($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors.- Default Value: ""
- $message
resetFileSearch()
- Defined in i2ce/lib/I2CE.php on line 347
- Signature: public function resetFileSearch()
rewrittenURLs()
returns true if the url's have been written. false if not
- Defined in i2ce/lib/I2CE.php on line 410
- Signature: static public function rewrittenURLs()
setConfig()
Sets an instance magic data object @param I2CE_MagicData $magicdata
- Defined in i2ce/lib/I2CE.php on line 803
- Signature: static public function setConfig($magicData)
- Parameters:
- $magicData
setTraceDepth()
Set the trace depth used in reporting error messages
- Defined in i2ce/lib/I2CE.php on line 1629
- Signature: static public function setTraceDepth($depth)
- Parameters:
- integer $depth Set to a negative number to report all, 0 to report none.
- Returns: integer.
The previous value of trace depth.
setUserAccess()
Set the user access mechanism
- Defined in i2ce/lib/I2CE.php on line 121
- Signature: static public function setUserAccess($userAccess)
- Parameters:
- I2CE_UserAccess_Mechanism $userAccess
setUserAccessInit()
Set the user access mechanism initialization string
- Defined in i2ce/lib/I2CE.php on line 77
- Signature: static public function setUserAccessInit($userAccessInit,$protocol,$set_protocol)
- Parameters:
setupDatabaseReferences()
Setup the references to database names in magic data
- Defined in i2ce/lib/I2CE.php on line 392
- Signature: static protected function setupDatabaseReferences($user_db)
- Parameters:
- string $user_db
defaults- Default Value: null
- string $user_db
setupFileSearch()
Create and populate the file search
- Defined in i2ce/lib/I2CE.php on line 320
- Signature: static public function setupFileSearch($paths,$clear_cache)
- Parameters:
setupMagicData()
Creates the magic data instance. Sets the mafic data storage mechanisms to be used.
- Defined in i2ce/lib/I2CE.php on line 275
- Signature: static public function setupMagicData($set_config,$replace)
- Parameters:
- boolean $set_config
Defaults to false meaning we dont replace the magic data instance- Default Value: true
- $replace
- Default Value: false
- boolean $set_config
- Returns: I2CE_MagicData
on success, null on failure
setupSession()
Setup the session variables
- Defined in i2ce/lib/I2CE.php on line 220
- Signature: static protected function setupSession()
siteInitialized()
Get/Set the site's initialization state. @param init. Defaults to null in which case we return the site installation state. if non-null, it is the new site initialization state.
- Defined in i2ce/lib/I2CE.php on line 172
- Signature: static public function siteInitialized($init)
- Parameters:
- $init
- Default Value: null
- $init
- Returns: mixed.