geneweb\api\GenewebAPI::getListIndividualInfos PHP Method

getListIndividualInfos() public method

Permet de récupérer les infos d'une liste d'individus Exemple: $array = array(array('n' => 'n', 'p' => 'p', 'oc' => 'oc'));
public getListIndividualInfos ( array $array ) : object\ListPerson
$array array
return object\ListPerson
    public function getListIndividualInfos($array)
    {
        $list = new \geneweb\api\object\ListReferencePersons();
        foreach ($array as $a) {
            $rp = new \geneweb\api\object\ReferencePerson();
            $rp->setN((string) $a['n']);
            $rp->setP((string) $a['p']);
            $rp->setOc((int) $a['oc']);
            if ((int) $a['oc'] >= 0) {
                $list->addListRefPersons($rp);
            }
        }
        return $this->request("LIST_PERSONS", $list, $this->getClassname('ListPersons'));
    }