public function removeAll()
{
$this->removeAllAssignments();
$this->db->createCommand()->delete($this->itemChildTable)->execute();
$this->db->createCommand()->delete($this->itemTable)->execute();
$this->db->createCommand()->delete($this->ruleTable)->execute();
$this->invalidateCache();
}
public function actionRemoveAll() { if ($this->confirm('Are you sure want to remove all authorization data, including roles, permissions, rules, and assignments?')) { $this->_authManager->removeAll(); } return 0; }