Пример #1
0
 public function __construct($class = null)
 {
     if (is_null($class)) {
         $e = new Exception();
         $trace = $e->getTrace();
         $class = HermitDaoManager::get($trace[1]['class']);
     } else {
         if (HermitDaoManager::has($class)) {
             $class = HermitDaoManager::get($class);
         }
     }
     $this->proxy = self::__create($this, $class);
 }
Пример #2
0
 public function get()
 {
     return HermitDaoManager::get(__CLASS__);
 }