class = $this->_getClassName($class_path); else $this->class = $class; $this->class_path = $class_path; $this->args = $args; } function isHandle() { return true; } function getClass() { return $this->class; } protected function _createOriginalObject() { lmb_require($this->_getClassFullPath()); $refl = new ReflectionClass($this->class); return call_user_func_array(array($refl, 'newInstance'),$this->args); } protected function _getClassName($class_path) { $items = explode('.', end(explode('/', $class_path))); return $items[0]; } protected function _getClassFullPath() { if(substr($this->class_path, -4, 4) != '.php') return $this->class_path . '.class.php'; else return $this->class_path; } } ?>