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

Class: Wind

Source Location: /Wind.php

Class Wind

Class Overview

Located in /Wind.php [line 19]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id: Wind.php 3330 2012-01-15 13:49:24Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Method Summary
static WindFrontController   application()  
static null   autoLoad()   类文件自动加载方法 callback
static void   clear()   清理Wind import变量信息
static WindWebApplication   getApp()   返回当前的app应用
static string   getAppName()  
static string|array   getImports()  
static string|array('isPackage','fileName','extension','realPath')   getRealDir()   解析路径信息,并返回路径的详情
static string|array('isPackage','fileName','extension','realPath')   getRealPath()   解析路径信息,并返回路径的详情
static string|Ambigous   getRootPath()   返回命名空间的路径信息
static string|null   import()   加载一个类或者加载一个包
static void   init()   初始化框架
static void   register()   将路径信息注册到命名空间,该方法不会覆盖已经定义过的命名空间
static void   setImports()   设置imports信息

[ Top ]
Methods
static method application  [line 37]

  static WindFrontController application( [ $appName = ''], [ $config = array()], IWindRequest $request, IWindResponse $response, WindFactory $factory  )

Parameters:
IWindRequest   $request: 
IWindResponse   $response: 
WindFactory   $factory: 
   $appName: 
   $config: 

API Tags:
Access:  public


[ Top ]
static method autoLoad  [line 151]

  static null autoLoad( string $className, [string $path = '']  )

类文件自动加载方法 callback

Parameters:
string   $className: 
string   $path: 

API Tags:
Access:  public


[ Top ]
static method clear  [line 232]

  static void clear( )

清理Wind import变量信息


API Tags:
Access:  public


[ Top ]
static method getApp  [line 60]

  static WindWebApplication getApp( [string $appName = '']  )

返回当前的app应用

Parameters:
string   $appName: 

API Tags:
See:  WindFrontController::getApp()
Access:  public


[ Top ]
static method getAppName  [line 48]

  static string getAppName( )


API Tags:
See:  WindFrontController::getAppName()
Access:  public


[ Top ]
static method getImports  [line 162]

  static string|array getImports( [string $key = '']  )

Parameters:
string   $key: 

API Tags:
Access:  public


[ Top ]
static method getRealDir  [line 204]

  static string|array('isPackage','fileName','extension','realPath') getRealDir( $dirPath, [boolean $absolut = false], string $filePath  )

解析路径信息,并返回路径的详情

Parameters:
string   $filePath:  路径信息
boolean   $absolut:  是否返回绝对路径
   $dirPath: 

API Tags:
Access:  public


[ Top ]
static method getRealPath  [line 180]

  static string|array('isPackage','fileName','extension','realPath') getRealPath( string $filePath, [boolean $suffix = ''], [ $absolut = false]  )

解析路径信息,并返回路径的详情

Parameters:
string   $filePath:  路径信息
boolean   $suffix:  是否存在文件后缀true,false,default
   $absolut: 

API Tags:
Access:  public


[ Top ]
static method getRootPath  [line 140]

  static string|Ambigous getRootPath( string $namespace  )

返回命名空间的路径信息

Parameters:
string   $namespace: 

API Tags:
Return:  <string, multitype:>
Access:  public


[ Top ]
static method import  [line 80]

  static string|null import( string $filePath, [boolean $recursivePackage = false]  )

加载一个类或者加载一个包

如果加载的包中有子文件夹不进行循环加载 参数格式说明:'WIND:base.WFrontController' WIND 注册的应用名称,应用名称与路径信息用‘:’号分隔 base.WFrontController 相对的路径信息 如果不填写应用名称 ,例如‘base.WFrontController’,那么加载路径则相对于默认的应用路径

加载一个类的参数方式:'WIND:base.WFrontController' 加载一个包的参数方式:'WIND:base.*'

Parameters:
string   $filePath:  | 文件路径信息 或者className
boolean   $recursivePackage:  | 当需要加载的路径为文件夹时是否递归它

API Tags:
Access:  public


[ Top ]
static method init  [line 217]

  static void init( )

初始化框架


API Tags:
Access:  public


[ Top ]
static method register  [line 117]

  static void register( string $path, [ $alias = ''], [boolean $includePath = false], [boolean $reset = false], string $name  )

将路径信息注册到命名空间,该方法不会覆盖已经定义过的命名空间

Parameters:
string   $path:  | 需要注册的路径
string   $name:  | 路径别名
boolean   $includePath:  | 是否同时定义includePath
boolean   $reset:  | 是否覆盖已经存在的定义,默认false
   $alias: 

API Tags:
Access:  public

Information Tags:
Throws:  Exception

[ Top ]
static method setImports  [line 170]

  static void setImports( array $imports  )

设置imports信息

Parameters:
array   $imports: 

API Tags:
Access:  public


[ Top ]

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