geneweb\api\GenewebAPI::getAllFamilies PHP Méthode

getAllFamilies() public méthode

Permet de récupérer toutes les familles d'une base
public getAllFamilies ( integer $from = null, integer $limit = null ) : object\ListPerson
$from integer [optional]
$limit integer [optional]
Résultat object\ListPerson
    public function getAllFamilies($from = null, $limit = null)
    {
        $afp = new \geneweb\api\object\AllFamiliesParams();
        if ($from != null) {
            $afp->setFrom((int) $from);
        }
        if ($limit != null) {
            $afp->setLimit((int) $limit);
        }
        return $this->request("ALL_FAMILIES", $afp, $this->getClassname('ListFullFamilies'));
    }