removeAllRules() public method

public removeAllRules ( )
Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function removeAllRules()
 {
     parent::removeAllRules();
     $this->_rules = [];
     $this->_items = null;
     $this->invalidate([self::PART_ITEMS, self::PART_RULES]);
 }