public function add_role($role, $parents = NULL) { $role = $role instanceof Acl_Role_Interface ? $role->get_role_id() : (string) $role; if (!is_array($parents)) { if ($parents === NULL) { $parents = array(); } else { $parents = array($parents); } } $this->_roles[$role] = $parents; return $this; }