Example #1
0
 /**
  * Returns the online ambassadors as a list of EPOA objects.
  *
  * @since 0.1
  *
  * @return array of EPOA
  */
 public function getOnlineAmbassadors()
 {
     if ($this->oas === false) {
         $this->oas = array();
         foreach ($this->getField('online_ambs') as $userId) {
             $this->oas[] = EPOA::newFromUserId($userId);
         }
     }
     return $this->oas;
 }