/** * Check current directive context on allowed (in what context this directive can be placed) * @param iContext $context * @return bool */ protected function isAllowedContext(iContext $context) { if ($context->getFullName() == Unknown::getFullName()) { return true; } return is_null($this->allowedContext) ? true : in_array($context->getName(), $this->allowedContext); }