/** * Dumps the walk data as an array */ public function getWeekend() { // Load the walk if not already done if (!isset($this->weekend)) { $this->loadWeekend(JRequest::getInt("weekendid", 0, "get")); } return $this->weekend->valuesToForm(); }