コード例 #1
0
ファイル: Content.php プロジェクト: snapfrozen/snapcms
 public function setType($type)
 {
     $cnfCTs = ContentType::getConfigArray();
     $this->type = $type;
     if (isset($cnfCTs[$this->type])) {
         $this->ContentType = new ContentType($cnfCTs[$this->type]);
     }
 }