removeAllRules() публичный Метод

public removeAllRules ( )
Пример #1
0
 public function actionRemoveAllRules()
 {
     if ($this->confirm('Are you sure want to remove all rules? All roles and permissions which have rules will be adjusted accordingly')) {
         $this->_authManager->removeAllRules();
     }
     return 0;
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function removeAllRules()
 {
     parent::removeAllRules();
     $this->_rules = [];
     $this->_items = null;
     $this->invalidate([self::PART_ITEMS, self::PART_RULES]);
 }