示例#1
0
 function get_query_parameters_parsed()
 {
     if (isset($this->query_parameters_parsed)) {
         return $this->query_parameters_parsed;
     }
     $parsed = DF_Web_HTTP_Request_QueryParser::parse_query_params($this->get_query_parameters());
     $this->query_parameters_parsed = $parsed;
     return $parsed;
 }
 function testSearchQueryBuilder()
 {
     $search = array('location' => 'Costa Blanca', 'type' => 'villa', 'bedrooms' => array('low' => 1, 'high' => 'max'), 'extra' => array('swimmingpool' => 'on'));
     $this->assertEqual('s.location=Costa+Blanca&s.type=villa&s.bedrooms.low=1&s.bedrooms.high=max&s.extra.swimmingpool=on', DF_Web_HTTP_Request_QueryParser::build_query_params_string($search));
 }