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

Class: WindDaoFactory

Source Location: /dao/WindDaoFactory.php

Class WindDaoFactory

Class Overview

Dao工厂

Dao工厂提供给使用者获取DAO实例,其职责:

  • 创建DAO实例
  • 创建数据访问连接对象
<note>注意:数据库链接会访问名为db的数据库组件配置</note>

Located in /dao/WindDaoFactory.php [line 19]

WindModule
   |
   --WindDaoFactory
Author(s): Information Tags:
Version:  $Id: WindDaoFactory.php 2973 2011-10-15 19:22:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From WindModule

WindModule::$_config
WindModule::$_proxy
WindModule::$_typeValidation

Inherited From WindModule

WindModule::getConfig()
根据配置名取得相应的配置
WindModule::getRequest()
返回当前应用的WindHttpRequest对象
WindModule::getResponse()
返回当前应用的WindHttpResponse对象
WindModule::getSystemFactory()
返回当前应用的WindFactory对象
WindModule::setConfig()
设置类配置
WindModule::setDelayAttributes()
设置延迟加载类属性相关组件配置信息
WindModule::toArray()
返回该对象的数组类型
WindModule::writeTableCloneProperty()
类对象clone白名单
WindModule::__call()
重载了魔术方法__call
WindModule::__clone()
重载魔术方法__clone
WindModule::__get()
重载了魔术方法__get
WindModule::__set()
重载了魔术方法__set

[ Top ]
Property Summary
string   $daoResource   dao路径信息

[ Top ]
Method Summary
WindDao   getDao()   返回Dao类实例
string   getDaoResource()   获得dao存放的目录
void   setDaoResource()   设置dao的获取目录

[ Top ]
Properties
string   $daoResource = '' [line 25]

dao路径信息

API Tags:
Access:  protected


[ Top ]
Methods
getDao  [line 40]

  WindDao getDao( string $className  )

返回Dao类实例

$className接受两种形式呃参数如下

  • 'namespace:path'
  • 'className'

Parameters:
string   $className:  Dao名字

API Tags:
Access:  public

Information Tags:
Throws:  WindDaoException 如果获取实例错误抛出异常

[ Top ]
getDaoResource  [line 60]

  string getDaoResource( )

获得dao存放的目录


API Tags:
Return:  Dao目录
Access:  public


[ Top ]
setDaoResource  [line 71]

  void setDaoResource( string $daoResource  )

设置dao的获取目录

以框架的命名空间方式设置比如:WIND:dao来设置路径信息,WIND的位置为注册过的命名空间名字.

Parameters:
string   $daoResource:  Dao目录

API Tags:
Access:  public


[ Top ]

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