예제 #1
0
 /**
  * Returns the associative array with all of the lists required to
  * render the html select elements on the detail page.
  *
  * @return array An associative array of option values
  */
 private function getDetailOptions()
 {
     global $logger;
     $logger->debug(get_class($this) . '::getDetailOptions()');
     $options = array();
     $evs = $this->getEnumeratedValueService();
     $pub = $evs->fetch('PublicationState');
     $logger->debug("Number of PubStates: " . count($pub['PublicationState']));
     $options['pubState'] = $pub['PublicationState'];
     $es = $this->getEventService();
     $exbt = $es->getEventsByPubState('Exhibition');
     $logger->debug("Number of Exhibitions: " . count($exbt));
     $options['exhibition'] = $exbt;
     $prgm = $es->getEventsByPubState('Program');
     $logger->debug("Number of Programs: " . count($prgm));
     $options['program'] = $prgm;
     $crse = $es->getEventsByPubState('Course');
     $logger->debug("Number of Courses: " . count($crse));
     $options['course'] = $crse;
     $gs = new GalleryService();
     $gal = $gs->getCategories(Venue::VENUE);
     $logger->debug("Number of Galleries: " . count($gal));
     $options['gallery'] = $gal;
     return $options;
 }
예제 #2
0
 /**
  * Returns the associative array with all of the lists required to
  * render the html select elements on the detail page.
  *
  * @return array An associative array of option values
  */
 private function getDetailOptions()
 {
     global $logger;
     $logger->debug(get_class($this) . '::getDetailOptions()');
     $options = array();
     $evs = $this->getEnumeratedValueService();
     $pub = $evs->fetch('PublicationState');
     $logger->debug("Number of PubStates: " . count($pub['PublicationState']));
     $options['pubState'] = $pub['PublicationState'];
     $status = $evs->fetch('EventStatus');
     $logger->debug("Number of EventStatus: " . count($status['EventStatus']));
     $options['eventStatus'] = $status['EventStatus'];
     $es = $this->getEventService();
     $exbt = $es->getEventsByPubState('Exhibition');
     $logger->debug("Number of Exhibitions: " . count($exbt));
     $options['exhibition'] = $exbt;
     $crse = $es->getEventsByPubState('Course');
     $logger->debug("Number of Courses: " . count($crse));
     $options['course'] = $crse;
     $vs = $this->getVenueService();
     $vnue = $vs->getVenuesByPubState();
     $logger->debug("Number of Venues: " . count($vnue));
     $options['venue'] = $vnue;
     $gc = $es->getCategories('Genre');
     $logger->debug("Number of Genres: " . count($gc));
     $options['genre'] = $gc;
     $ac = $es->getCategories('Audience');
     $logger->debug("Number of Audiences: " . count($ac));
     $options['audience'] = $ac;
     $sc = $es->getCategories('Series');
     $logger->debug("Number of Series: " . count($sc));
     $options['series'] = $sc;
     $ss = $this->getScheduleService();
     $month = $ss->getMonthArray();
     $logger->debug("Number of Months: " . count($month));
     $options['month'] = $month;
     $year = $ss->getYearArray(1, 1);
     $logger->debug("Number of Years: " . count($year));
     $options['year'] = $year;
     $day = $ss->getDayArray();
     $logger->debug("Number of Days: " . count($day));
     $options['day'] = $day;
     $hour = $ss->getHourArray();
     $logger->debug("Number of Hours: " . count($hour));
     $options['hour'] = $hour;
     $minute = $ss->getMinuteArray(MINUTE_INTERVAL);
     $logger->debug("Number of Minutes: " . count($minute));
     $options['minute'] = $minute;
     $ampm = $ss->getAmpmArray();
     $logger->debug("Number of am/pm: " . count($ampm));
     $options['ampm'] = $ampm;
     $gs = new GalleryService();
     $gal = $gs->getCategories(Event::PROGRAM);
     $logger->debug("Number of Galleries: " . count($gal));
     $options['gallery'] = $gal;
     $jcs = $this->getJoomlaContentService();
     $prart = $jcs->getArticlesByCategory(PRESS_ACTIVE_CATEGORY_ID);
     $options['pressrelease'] = $prart;
     $caart = $jcs->getArticlesByCategory(COMMENT_ARTICLE_CATEGORY_ID);
     //$logger->debug("Number of Articles for Comment Article Category: ". count($caart) ." first item: ". $caart[0]->getTitle());
     $options['commentarticle'] = $caart;
     $relcat = $jcs->getCategoriesBySection(PRGM_CONTENT_SECTION_ID);
     $options['relatedcategory'] = $relcat;
     return $options;
 }
예제 #3
0
 /**
  * Returns the associative array with all of the lists required to 
  * render the html select elements on the detail page.
  * 
  * @return array An associative array of option values
  */
 private function getDetailOptions()
 {
     global $logger;
     $logger->debug(get_class($this) . '::getDetailOptions()');
     $options = array();
     $evs = $this->getEnumeratedValueService();
     $pub = $evs->fetch('PublicationState');
     $logger->debug("Number of PubStates: " . count($pub['PublicationState']));
     $options['pubState'] = $pub['PublicationState'];
     $status = $evs->fetch('EventStatus');
     $logger->debug("Number of EventStatus: " . count($status['EventStatus']));
     $options['eventStatus'] = $status['EventStatus'];
     $es = $this->getEventService();
     $exbt = $es->getEventsByPubState('Exhibition');
     $logger->debug("Number of Exhibitions: " . count($exbt));
     $options['exhibition'] = $exbt;
     $prgm = $es->getEventsByPubState('Program');
     $logger->debug("Number of Programs: " . count($prgm));
     $options['program'] = $prgm;
     $vs = $this->getVenueService();
     $vnue = $vs->getVenuesByPubState();
     $logger->debug("Number of Venues: " . count($vnue));
     $options['venue'] = $vnue;
     $gc = $es->getCategories('Genre');
     $logger->debug("Number of Genres: " . count($gc));
     $options['genre'] = $gc;
     $ac = $es->getCategories('Audience');
     $logger->debug("Number of Audiences: " . count($ac));
     $options['audience'] = $ac;
     $sc = $es->getCategories('Series');
     $logger->debug("Number of Series: " . count($sc));
     $options['series'] = $sc;
     $ss = $this->getScheduleService();
     $month = $ss->getMonthArray();
     $logger->debug("Number of Months: " . count($month));
     $options['month'] = $month;
     $year = $ss->getYearArray(1, 1);
     $logger->debug("Number of Years: " . count($year));
     $options['year'] = $year;
     $day = $ss->getDayArray();
     $logger->debug("Number of Days: " . count($day));
     $options['day'] = $day;
     $hour = $ss->getHourArray();
     $logger->debug("Number of Hours: " . count($hour));
     $options['hour'] = $hour;
     $minute = $ss->getMinuteArray(MINUTE_INTERVAL);
     $logger->debug("Number of Minutes: " . count($minute));
     $options['minute'] = $minute;
     $ampm = $ss->getAmpmArray();
     $logger->debug("Number of am/pm: " . count($ampm));
     $options['ampm'] = $ampm;
     $gs = new GalleryService();
     $gal = $gs->getCategories(Event::COURSE);
     $logger->debug("Number of Galleries: " . count($gal));
     $options['gallery'] = $gal;
     return $options;
 }