removeAllItems() защищенный Метод

Removes all auth items of the specified type.
protected removeAllItems ( integer $type )
$type integer the auth item type (either Item::TYPE_PERMISSION or Item::TYPE_ROLE)
Пример #1
0
 /**
  * @inheritdoc
  */
 protected function removeAllItems($type)
 {
     parent::removeAllItems($type);
     $this->_assignments = [];
     $this->_children = $this->_items = null;
     $this->invalidate([self::PART_ITEMS, self::PART_CHILDREN]);
 }