phpDocumentor base
[ class tree: base ] [ index: base ] [ all elements ]

Class: WindHelper

Source Location: /base/WindHelper.php

Class WindHelper

Class Overview

基础帮助类,提供框架错误处理基础操作

Located in /base/WindHelper.php [line 11]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id: WindHelper.php 3221 2011-12-01 04:43:28Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Property Summary
static string   $errorDir   默认错误视图位置

[ Top ]
Method Summary
static void   crash()   错误信息处理方法
static void   errorHandle()   错误处理句柄
static void   exceptionHandle()   异常处理句柄
static string   getErrorName()   错误代码和错误信息映射方法,接受一个错误代码返回相对应错误代码的错误名称
static void   triggerError()   以静态错误页面终结请求

[ Top ]
Properties
static string   $errorDir = 'WIND:web.view' [line 20]

默认错误视图位置

默认错误视图位置,可以通过应用配置进行重定义

  1.  <errorpage>WIND:web.view</errorpage>

API Tags:
Access:  protected


[ Top ]
Methods
static method crash  [line 87]

  static void crash( string $message, string $file, string $line, array $trace, [ $status = 0]  )

错误信息处理方法

Parameters:
string   $message: 
string   $file: 
string   $line: 
array   $trace: 
   $status: 

API Tags:
Access:  protected


[ Top ]
static method errorHandle  [line 31]

  static void errorHandle( string $errno, string $errstr, string $errfile, string $errline  )

错误处理句柄

Parameters:
string   $errno: 
string   $errstr: 
string   $errfile: 
string   $errline: 

API Tags:
Access:  public


[ Top ]
static method exceptionHandle  [line 66]

  static void exceptionHandle( Exception $exception  )

异常处理句柄

Parameters:
Exception   $exception: 

API Tags:
Access:  public


[ Top ]
static method getErrorName  [line 191]

  static string getErrorName( int $errorNumber  )

错误代码和错误信息映射方法,接受一个错误代码返回相对应错误代码的错误名称

Parameters:
int   $errorNumber:  错误代码 必填

API Tags:
Access:  protected


[ Top ]
static method triggerError  [line 49]

  static void triggerError( string $message, string $template, WindHttpResponse $response, int $status  )

以静态错误页面终结请求

Parameters:
string   $message: 
string   $template: 
WindHttpResponse   $response: 
int   $status: 

API Tags:
Access:  public


[ Top ]
Constants
INTERNAL_LOCATION = "~Internal Location~" [line 12]

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:34 +0800 by phpDocumentor 1.4.4