Lines Matching refs:mode

276      * @param int $mode
307 function setErrorHandling($mode = null, $options = null) argument
317 switch ($mode) {
324 $setmode = $mode;
329 $setmode = $mode;
450 * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT,
478 $mode = null, argument
503 $mode = PEAR_ERROR_RETURN;
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;
601 $stack[] = array($mode, $options);
611 list($mode, $options) = $stack[sizeof($stack) - 1];
613 switch ($mode) {
620 $setmode = $mode;
625 $setmode = $mode;
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) {
911 return $this->mode;
1025 if ($this->mode & PEAR_ERROR_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) {