geneweb\api\GenewebAPI::getNotificationBirthday PHP Method

getNotificationBirthday() public method

Permet de récupérer une liste de personnes ayant leur anniversaire dans la date donnée
public getNotificationBirthday ( string $n, string $p, integer $oc, string $type, integer $month, integer $day ) : object\NotificationBirthday
$n string
$p string
$oc integer
$type string
$month integer
$day integer
return object\NotificationBirthday
    public function getNotificationBirthday($n, $p, $oc, $type, $month, $day)
    {
        $nbp = new \geneweb\api\object\NotificationBirthdayParams();
        $rp = new \geneweb\api\object\ReferencePerson();
        $rp->setN((string) $n);
        $rp->setP((string) $p);
        $rp->setOc((int) $oc);
        $nbp->setPerson($rp);
        $nbp->setMonth((int) $month);
        $nbp->setDay((int) $day);
        $nbp->setParams($type);
        return $this->request("NOTIFICATION_BIRTHDAY", $nbp, $this->getClassname('NotificationBirthday'));
    }