/** * Abort building form if there is no valid identifier given */ protected function checkIdentifier() { if (!in_array($this->identifier, array_keys(srCertificateType::getDefaultSettings()))) { throw new ilException("Unrecognized identifier '{$this->identifier}'"); } }