コード例 #1
0
ファイル: AAdmin.php プロジェクト: kingsj/core
 /**
  * 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);
 }
コード例 #2
0
ファイル: Classes.php プロジェクト: kingsj/core
 /**
  * Prepare class name
  *
  * @param string $class Class name to prepare
  *
  * @return string
  */
 protected function prepareClassName($class)
 {
     return \Includes\Utils\Converter::trimLeadingChars($class, '\\');
 }