Exemplo n.º 1
0
 /**
  * Starts the data import
  * @return void
  */
 public function startImport()
 {
     if (get_field('xcap_daily_cron', 'option') === true ||  empty(get_field('xcap_daily_cron', 'option'))) {
         $xcapUrl = 'http://mittkulturkort.se/calendar/listEvents.action' . '?month=&date=&categoryPermaLink=&q=&p=&feedType=ICAL_XML';
         new \HbgEventImporter\Parser\Xcap($xcapUrl);
     }
 }
Exemplo n.º 2
0
 /**
  * Returns the members of this group
  * Calls fetchMembers() if the members haven't been fetched already.
  * @return Array
  */
 public function getMembers()
 {
     if (empty($this->members) ||  empty($this->members[0])) {
         $this->fetchMembers();
     }
     return $this->members;
 }