Lines Matching full:mode
102 * Default error mode for this object.
110 * Default error options used for this object when error mode
119 * Default error handler (callback) for this object, if error mode is
276 * @param int $mode
282 * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one
285 * When $mode is PEAR_ERROR_CALLBACK, this parameter is expected
292 * When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is
307 function setErrorHandling($mode = null, $options = null) argument
317 switch ($mode) {
324 $setmode = $mode;
329 $setmode = $mode;
339 trigger_error("invalid error mode", E_USER_WARNING);
346 * Expected errors are always returned with error mode
442 * handling applied. If the $mode and $options parameters are not
450 * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT,
454 * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter
457 * If $mode is PEAR_ERROR_CALLBACK, this
478 $mode = null, argument
503 $mode = PEAR_ERROR_RETURN;
507 // No mode given, try global ones
508 if ($mode === null) {
511 $mode = $this->_default_error_mode;
515 $mode = $GLOBALS['_PEAR_default_error_mode'];
535 $a = new $ec($code, $mode, $options, $userinfo);
537 $a = new $ec($message, $code, $mode, $options, $userinfo);
570 function staticPushErrorHandling($mode, $options = null) argument
576 switch ($mode) {
583 $def_mode = $mode;
588 $def_mode = $mode;
598 trigger_error("invalid error mode", E_USER_WARNING);
601 $stack[] = array($mode, $options);
611 list($mode, $options) = $stack[sizeof($stack) - 1];
613 switch ($mode) {
620 $setmode = $mode;
625 $setmode = $mode;
635 trigger_error("invalid error mode", E_USER_WARNING);
646 * @param mixed $mode (same as setErrorHandling)
653 function pushErrorHandling($mode, $options = null) argument
666 $this->setErrorHandling($mode, $options);
668 PEAR::setErrorHandling($mode, $options);
670 $stack[] = array($mode, $options);
685 list($mode, $options) = $stack[sizeof($stack) - 1];
688 $this->setErrorHandling($mode, $options);
690 PEAR::setErrorHandling($mode, $options);
803 var $mode = PEAR_ERROR_RETURN; variable in PEAR_Error
817 * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN,
831 $mode = null, $options = null, $userinfo = null) argument
833 if ($mode === null) {
834 $mode = PEAR_ERROR_RETURN;
838 $this->mode = $mode;
854 if ($mode & PEAR_ERROR_CALLBACK) {
866 if ($this->mode & PEAR_ERROR_PRINT) {
876 if ($this->mode & PEAR_ERROR_TRIGGER) {
880 if ($this->mode & PEAR_ERROR_DIE) {
893 if ($this->mode & PEAR_ERROR_CALLBACK && is_callable($this->callback)) {
897 if ($this->mode & PEAR_ERROR_EXCEPTION) {
904 * Get the error mode from an error object.
906 * @return int error mode
911 return $this->mode;
1025 if ($this->mode & PEAR_ERROR_CALLBACK) {
1034 return sprintf('[%s: message="%s" code=%d mode=callback '.
1040 if ($this->mode & PEAR_ERROR_PRINT) {
1043 if ($this->mode & PEAR_ERROR_TRIGGER) {
1046 if ($this->mode & PEAR_ERROR_DIE) {
1049 if ($this->mode & PEAR_ERROR_RETURN) {
1052 return sprintf('[%s: message="%s" code=%d mode=%s level=%s '.
1063 * mode: php