public function setType($type) { $cnfCTs = ContentType::getConfigArray(); $this->type = $type; if (isset($cnfCTs[$this->type])) { $this->ContentType = new ContentType($cnfCTs[$this->type]); } }
public function setType($type) { $cnfCTs = ContentType::getConfigArray(); $this->type = $type; if (isset($cnfCTs[$this->type])) { $this->ContentType = new ContentType($cnfCTs[$this->type]); } }