public function add(Zend_Acl_Role_Interface
$role,
$parents = null
) { $roleId =
$role->
getRoleId();
if ($this->
has($roleId)) { /**
* @see Zend_Acl_Role_Registry_Exception
*/
throw new Zend_Acl_Role_Registry_Exception("Role id '
$roleId' already exists in the registry"
);
} $roleParents = array
();
if (null !==
$parents) { if (!
is_array($parents)) { $parents = array
($parents);
} /**
* @see Zend_Acl_Role_Registry_Exception
*/