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); }
public function get() { return HermitDaoManager::get(__CLASS__); }