protected function getEditViewControl() { if (($id = $this->getEditViewID()) !== null) { $ctrl = $this->getParent()->findControl($id); if ($ctrl === null) { throw new TConfigurationException('scaffold_unable_to_find_edit_view', $id); } return $ctrl; } }