Ejemplo n.º 1
0
 /**
  * 加载DAO文件
  *
  * @param string $path DAO文件
  * @return object
  */
 public static function loadDao($path)
 {
     if (self::$_daoFactory === null) {
         Wind::import('WIND:dao.WindDaoFactory');
         self::$_daoFactory = new WindDaoFactory();
     }
     $dao = self::$_daoFactory->getDao('WINDID:service.' . $path);
     $dao->setDelayAttributes(array('connection' => array('ref' => 'windiddb')));
     return $dao;
 }