Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. <?PHP
  2. class FlightSearchResult_Controller extends Page_Controller {
  3.     private $apiSearchResults = '';
  4.     private $apiQuery = '';
  5.  
  6.     public function getFlightResults() {
  7.  
  8.         $this->apiSearchResults = $flightsDateBreakdown;
  9.         $this->apiQuery = $apiResponse->query;
  10.  
  11.         return $flightsDateBreakdown;
  12.     }
  13.  
  14.     public function getAPIQuery( $param ){
  15.         echo __FILE__ . " on line " . __LINE__ . " $param<br>";
  16.         return !empty($this->apiQuery) ? $this->apiQuery : [];
  17.     }
  18. }
  19. =========================================
  20.             <div class="search-left">
  21.                 <input id="search_flight" name="search_flight" value="$getAPIQuery(search_flight)" class="" tabindex="4">
  22.             </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement