/** * @param $moduletag */ public function __construct($moduletag) { $this->_tag = $moduletag; if (!class_exists($this->getClassName())) { new View\PageNotFound(); } else { $modules = new Modules(); $this->_data = $modules->getModuleData($this->_tag); if (!in_array($moduletag, self::$FIXMODULES) && $this->_data === null) { new PageNotFound(); } } }