src/snac/data/Role.php
/**
     * Remove a privilege
     *
     * Might be able to use a list slice or something, but this simple algo gets the job done.
     *
     * @param \snac\data\Privilege $privilege Remove this privilege.
     */
Remove a privilege
Might be able to use a list slice or something, but this simple algo gets the job done.

@param \snac\data\Privilege $privilege Remove this privilege.
Remove a privilege Might be able to use a list slice or something but this simple algo gets the job done . @param \ snac \ data \ Privilege $privilege Remove this privilege .
public function removePrivilege($privilege)
    {
        $removeID = $privilege->getID();
        $oldList = $this->privilegeList;
        $this->privilegeList = array();
        foreach($oldList as $priv)
        {
            if ($priv->getID() != $removeID)
            {
                $this->addPrivilege($priv);
            }
        }
    }
public function removePrivilege ( $ privilege ) { $ removeID = $ privilege -> getID ( ) ; $ oldList = $ this -> privilegeList ; $ this -> privilegeList = array ( ) ; foreach ( $ oldList as $ priv ) { if ( $ priv -> getID ( ) != $ removeID ) { $ this -> addPrivilege ( $ priv ) ; } } }
Remove a privilege
 Might be able to use a list slice or something, but this simple algo gets the job done.
Remove a privilege Might be able to use a list slice or something but this simple algo gets the job done .