/** * 实例化本程序 * @param $args = func_get_args(); * @return object of this class */ public static function getInstance() { if (!isset(self::$_instance)) { self::$_instance = new self(func_get_args()); } return self::$_instance; }
/** * 获得_validator对象 * * @return Leb_Validator */ public function getValidator() { if (empty($this->_validator)) { $this->_validator = Leb_Validator::getInstance(); } return $this->_validator; }