コード例 #1
0
ファイル: Module.php プロジェクト: rcrrich/cunity
 /**
  * @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();
         }
     }
 }