Exemplo n.º 1
0
 public function getIdentificator()
 {
     return Action::createIdentificator([$this->getModuleName(), $this->getName()]);
 }
Exemplo n.º 2
0
 /**
  * @param InlineAction $action 
  * @return string Identificator of permission
  */
 public static function getPermissionNameViaAction(\yii\base\Action $action)
 {
     return Action::createIdentificator([$action->controller->module->id, array_pop(explode('\\', $action->controller->className())), str_replace('action', '', $action->id)]);
 }