code/pages/RegistrableEvent.php
public function getAvailableTickets() {
		$available = ArrayList::create();
		$tickets = $this->Tickets();
		foreach($tickets as $ticket) {
			if ($ticket->isAvailable()) {
				$available->push($ticket);
			}
		}
		return $available;
	}
public function getAvailableTickets() {
		$available = ArrayList::create();
		$tickets = $this->Tickets();
		foreach($tickets as $ticket) {
			if ($ticket->isAvailable()) {
				$available->push($ticket);
			}
		}
		return $available;
	}
public function getAvailableTickets ( ) { $ available = ArrayList :: create ( ) ; $ tickets = $ this -> Tickets ( ) ; foreach ( $ tickets as $ ticket ) { if ( $ ticket -> isAvailable ( ) ) { $ available -> push ( $ ticket ) ; } } return $ available ; }
Get available tickets.
@return ArrayList
Get available tickets .