addItem() protected method
Adds an auth item to the RBAC system.
| protected boolean addItem ( $item ) | ||
|---|---|---|
| $item | yii\rbac\Item | 
 The item to add  |  
| return | boolean | 
 Whether the auth item is successfully added to the system  |  
| throws | Exception | 
 if data validation or saving fails (such as the name of the role or permission is not unique)  |  
Please login to continue.