Lines Matching full:mode

115      * Default error mode for this object.
123 * Default error options used for this object when error mode
132 * Default error handler (callback) for this object, if error mode is
297 * @param int $mode
303 * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one
306 * When $mode is PEAR_ERROR_CALLBACK, this parameter is expected
313 * When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is
329 function setErrorHandling($mode = null, $options = null) argument
339 switch ($mode) {
346 $setmode = $mode;
351 $setmode = $mode;
361 trigger_error("invalid error mode", E_USER_WARNING);
371 * Expected errors are always returned with error mode
484 * handling applied. If the $mode and $options parameters are not
492 * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT,
496 * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter
499 * If $mode is PEAR_ERROR_CALLBACK, this
520 $mode = null, argument
539 $mode = PEAR_ERROR_RETURN;
542 // No mode given, try global ones
543 if ($mode === null) {
546 $mode = $this->_default_error_mode;
550 $mode = $GLOBALS['_PEAR_default_error_mode'];
563 $a = &new $ec($code, $mode, $options, $userinfo);
566 $a = &new $ec($message, $code, $mode, $options, $userinfo);
595 function staticPushErrorHandling($mode, $options = null) argument
601 switch ($mode) {
608 $def_mode = $mode;
613 $def_mode = $mode;
623 trigger_error("invalid error mode", E_USER_WARNING);
626 $stack[] = array($mode, $options);
636 list($mode, $options) = $stack[sizeof($stack) - 1];
638 switch ($mode) {
645 $setmode = $mode;
650 $setmode = $mode;
660 trigger_error("invalid error mode", E_USER_WARNING);
673 * @param mixed $mode (same as setErrorHandling)
680 function pushErrorHandling($mode, $options = null) argument
693 $this->setErrorHandling($mode, $options);
695 PEAR::setErrorHandling($mode, $options);
697 $stack[] = array($mode, $options);
715 list($mode, $options) = $stack[sizeof($stack) - 1];
718 $this->setErrorHandling($mode, $options);
720 PEAR::setErrorHandling($mode, $options);
821 var $mode = PEAR_ERROR_RETURN; variable in PEAR_Error
838 * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN,
852 $mode = null, $options = null, $userinfo = null) argument
854 if ($mode === null) {
855 $mode = PEAR_ERROR_RETURN;
859 $this->mode = $mode;
866 if ($mode & PEAR_ERROR_CALLBACK) {
876 if ($this->mode & PEAR_ERROR_PRINT) {
884 if ($this->mode & PEAR_ERROR_TRIGGER) {
887 if ($this->mode & PEAR_ERROR_DIE) {
899 if ($this->mode & PEAR_ERROR_CALLBACK) {
904 if ($this->mode & PEAR_ERROR_EXCEPTION) {
914 * Get the error mode from an error object.
916 * @return int error mode
920 return $this->mode;
1056 if ($this->mode & PEAR_ERROR_CALLBACK) {
1065 return sprintf('[%s: message="%s" code=%d mode=callback '.
1071 if ($this->mode & PEAR_ERROR_PRINT) {
1074 if ($this->mode & PEAR_ERROR_TRIGGER) {
1077 if ($this->mode & PEAR_ERROR_DIE) {
1080 if ($this->mode & PEAR_ERROR_RETURN) {
1083 return sprintf('[%s: message="%s" code=%d mode=%s level=%s '.
1096 * mode: php