ZF-1175: Support adding parent(s) to existing Role
For performance reasons, I can't load all the acls when a user sign in my website. I load my access rights from my database when I need it and my Zend_Acl instance is filled according to these new informations. (note my Zend_Acl instance is saved in session).
If a new role is loaded, and my current user (which is a role) should be a child of this new role, I can't add a parent to my current user.
In this case, I need a new method in Zend_Acl like
/** * @param Zend_Acl_Role_Interface|string $role * @param Zend_Acl_Role_Interface|string|array $newParents * @return Zend_Acl Provides a fluent interface */ public function addParentToRole(Zend_Acl_Role_Interface $role, $newParents = null)