Class App

Description

ThinkPHP 应用程序类 执行应用过程管理

Located in /Think/Core/App.class.php (line 24)

Base
   |
   --App
Variable Summary
string $id
string $name
Method Summary
static App getInstance ()
void __construct ([string $name = 'App'], [string $id = ''])
void appError (int $errno, string $errstr, string $errfile, int $errline)
void appException (mixed $e)
void exec ()
void init ()
void run ()
Variables
string $id (line 45)

应用程序标识号

  • access: protected
string $name (line 35)

应用程序名称

  • access: protected
Methods
static getInstance (line 75)

取得应用实例对象

静态方法

  • access: public
static App getInstance ()
Constructor __construct (line 59)

架构函数

  • access: public
void __construct ([string $name = 'App'], [string $id = ''])
  • string $name: 应用名称
  • string $id: 应用标识号
appError (line 604)

自定义错误处理

  • access: public
void appError (int $errno, string $errstr, string $errfile, int $errline)
  • int $errno: 错误类型
  • string $errstr: 错误信息
  • string $errfile: 错误文件
  • int $errline: 错误行数
appException (line 585)

自定义异常处理

  • access: public
void appException (mixed $e)
  • mixed $e: 异常对象
exec (line 505)

执行应用程序

  • throws: ThinkExecption
  • access: public
void exec ()
init (line 89)

应用程序初始化

  • access: public
void init ()
run (line 570)

运行应用实例 入口文件使用的快捷方法

  • throws: ThinkExecption
  • access: public
void run ()

Documentation generated on Thu, 27 Mar 2008 08:20:22 +0000 by 塞北的雪