/** * Get detailed information on a Registrant * @param Registrant $Registrant - Registrant Object * @return Registrant */ public function getRegistrantDetails(Registrant $Registrant) { $EventsCollection = new EventsCollection($this->CTCTRequest); $key = constant_contact_cache_key('Registrant', $Registrant); $details = get_transient($key); if (!$details || $this->refreshCache('registrant')) { $details = $EventsCollection->getRegistrantDetails($this->CTCTRequest->baseUri . $Registrant->link); set_transient($key, $details, self::$registrant_cache_age); } return $details; }
/** * Get detailed information on a Registrant * @param Registrant $Registrant - Registrant Object * @return Registrant */ public function getRegistrantDetails(Registrant $Registrant){ $EventsCollection = new EventsCollection($this->CTCTRequest); return $EventsCollection->getRegistrantDetails($this->CTCTRequest->baseUri.$Registrant->link); }