parent::__construct(false, false);
}
+ /**
+ * getCategories
+ *
+ * Grab all of the categories for the events
+ *
+ * @access public
+ * @return array categories
+ */
public function getCategories()
{
$categoryData = new GlmDataEventsCategories( $this->wpdb, $this->config );
return $categoryData->getCategoriesWithCurrentEvents();
}
+ /**
+ * getModelEventsData
+ *
+ * Return the array of events.
+ *
+ * @param bool $categoryId Id of the category for filtering events (optional)
+ * @param bool $limit Number of events to return (optional)
+ *
+ * @access public
+ * @return array events
+ */
public function getModelEventsData($categoryId = null, $limit = null)
{
$this->postAddTimes = true;
return $events;
}
+ /**
+ * getModelEventData
+ *
+ * Return the event using given eventId
+ *
+ * @param mixed $eventId Event Id for the entry
+ *
+ * @access public
+ * @return array The event
+ */
public function getModelEventData($eventId)
{
//echo '<pre>$eventId: ' . print_r($eventId, true) . '</pre>';