/** * Check if we need to forbid current action * * @return boolean */ protected function checkForDemoController() { $class = \Includes\Utils\Converter::trimLeadingChars(get_class($this), '\\'); return in_array($class, $this->demoControllers) ? !$this->isDemoActionPermitted($class) : $this->isDemoActionForbidden($class); }
/** * Prepare class name * * @param string $class Class name to prepare * * @return string */ protected function prepareClassName($class) { return \Includes\Utils\Converter::trimLeadingChars($class, '\\'); }