public function fillFromSite($nb_site) : int
    {
        $this->clear();
        $this->merge(CNabuRole::getRolesForSite($nb_site));
        
        return $this->getSize();
    }
public function fillFromSite($nb_site) : int
    {
        $this->clear();
        $this->merge(CNabuRole::getRolesForSite($nb_site));
        
        return $this->getSize();
    }
public function fillFromSite ( $ nb_site ) : int { $ this -> clear ( ) ; $ this -> merge ( CNabuRole :: getRolesForSite ( $ nb_site ) ) ; return $ this -> getSize ( ) ; }
Clear the list and fill it from Roles assigned to a Site.
@param mixed $nb_site A Site instance, an object containing a field name nb_site_id or a Site Id.
@return int Returns the number of Roles found.
Clear the list and fill it from Roles assigned to a Site .