public function addParsedObject($object) { if ($object instanceof TView) { $this->getControls()->add($object); } else { if (!is_string($object)) { throw new TConfigurationException('multiview_view_required'); } } }