return $db->select("event","eventid,title,starttime","");
}
+/**Get an overview of events: returns an array of array("eventid"=>int); used by createEventList; returns only events in the future and ordered*/
+function getAllEventsForListing()
+{
+ global $db;
+ return $db->select("event","eventid","starttime>=".time()." ORDER BY starttime");
+}
+
/**Machine-wrapper for getAllEvents() */
function getAllEventsXml()
{
{
$lang = LanguageManager::singleton();
- return array("DATE"=>$lang->getDate($this->getStartTime()), "TIME"=>$lang->getTime($this->getStartTime()), "PLACE"=>$this->getRoomId(), "EVENTNAME"=>$this->getTitle(), "ARTIST"=>$this->getArtist(),"PRICE"=>$lang->getPrice($this->getDefaultPrice()), "ID"=>$this->getEventId(), "DESCRIPTION"=>$this->getDescription(), "LINK"=>"","AVAILABLETICKETS"=>$this->availableTicketAmount());
+ return array(
+ "DATE"=>$lang->getDate($this->getStartTime()),
+ "TIME"=>$lang->getTime($this->getStartTime()),
+ "PLACE"=>$this->getRoomId(),
+ "EVENTNAME"=>$this->getTitle(),
+ "ARTIST"=>$this->getArtist(),
+ "PRICE"=>$lang->getPrice($this->getDefaultPrice()),
+ "ID"=>$this->getEventId(),
+ "DESCRIPTION"=>$this->getDescription(),
+ "AVAILABLETICKETS"=>$this->availableTicketAmount()
+ );
}
/**returns how many tickets can still be sold*/