Lines Matching refs:this

155         $classname = strtolower(get_class($this));
156 if ($this->_debug) {
161 $this->_error_class = $error_class;
166 if (method_exists($this, $destructor)) {
168 $_PEAR_destructor_object_list[] = &$this;
192 if ($this->_debug) {
193 printf("PEAR destructor called, class=%s\n", strtolower(get_class($this)));
309 if (isset($this) && is_a($this, 'PEAR')) {
310 $setmode = &$this->_default_error_mode;
311 $setoptions = &$this->_default_error_options;
362 array_push($this->_expected_errors, $code);
364 array_push($this->_expected_errors, array($code));
366 return count($this->_expected_errors);
377 return array_pop($this->_expected_errors);
391 foreach ($this->_expected_errors as $key => $error_array) {
393 unset($this->_expected_errors[$key][array_search($error_code, $error_array)]);
398 if (0 == count($this->_expected_errors[$key])) {
399 unset($this->_expected_errors[$key]);
422 $deleted = $this->_checkDelExpect($error) ? true : false;
428 if ($this->_checkDelExpect($error_code)) {
494 isset($this) &&
495 isset($this->_expected_errors) &&
496 count($this->_expected_errors) > 0 &&
497 count($exp = end($this->_expected_errors))
510 if (isset($this) && isset($this->_default_error_mode)) {
511 $mode = $this->_default_error_mode;
512 $options = $this->_default_error_options;
522 } elseif (isset($this) && isset($this->_error_class)) {
523 $ec = $this->_error_class;
561 if (isset($this) && is_a($this, 'PEAR')) {
562 $a = &$this->raiseError($message, $code, null, null, $userinfo);
656 if (isset($this) && is_a($this, 'PEAR')) {
657 $def_mode = &$this->_default_error_mode;
658 $def_options = &$this->_default_error_options;
665 if (isset($this) && is_a($this, 'PEAR')) {
666 $this->setErrorHandling($mode, $options);
687 if (isset($this) && is_a($this, 'PEAR')) {
688 $this->setErrorHandling($mode, $options);
836 $this->message = $message;
837 $this->code = $code;
838 $this->mode = $mode;
839 $this->userinfo = $userinfo;
848 $this->backtrace = debug_backtrace();
849 if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) {
850 unset($this->backtrace[0]['object']);
855 $this->level = E_USER_NOTICE;
856 $this->callback = $options;
862 $this->level = $options;
863 $this->callback = null;
866 if ($this->mode & PEAR_ERROR_PRINT) {
873 printf($format, $this->getMessage());
876 if ($this->mode & PEAR_ERROR_TRIGGER) {
877 trigger_error($this->getMessage(), $this->level);
880 if ($this->mode & PEAR_ERROR_DIE) {
881 $msg = $this->getMessage();
893 if ($this->mode & PEAR_ERROR_CALLBACK && is_callable($this->callback)) {
894 call_user_func($this->callback, $this);
897 if ($this->mode & PEAR_ERROR_EXCEPTION) {
911 return $this->mode;
922 return $this->callback;
933 return ($this->error_message_prefix . $this->message);
944 return $this->code;
955 return get_class($this);
966 return $this->userinfo;
977 return $this->getUserInfo();
994 return $this->backtrace;
996 return $this->backtrace[$frame];
1001 if (empty($this->userinfo)) {
1002 $this->userinfo = $info;
1004 $this->userinfo .= " ** $info";
1010 return $this->getMessage();
1025 if ($this->mode & PEAR_ERROR_CALLBACK) {
1026 if (is_array($this->callback)) {
1027 $callback = (is_object($this->callback[0]) ?
1028 strtolower(get_class($this->callback[0])) :
1029 $this->callback[0]) . '::' .
1030 $this->callback[1];
1032 $callback = $this->callback;
1036 strtolower(get_class($this)), $this->message, $this->code,
1037 $callback, $this->error_message_prefix,
1038 $this->userinfo);
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) {
1054 strtolower(get_class($this)), $this->message, $this->code,
1055 implode("|", $modes), $levels[$this->level],
1056 $this->error_message_prefix,
1057 $this->userinfo);