use ILIKE for case insensitive searches
[grauphel.git] / lib / response / formresponse.php
1 <?php
2 namespace OCA\Grauphel\Lib\Response;
3
4 class FormResponse extends \OCP\AppFramework\Http\Response
5 {
6     protected $data;
7
8     public function __construct($data)
9     {
10         $this->setStatus(\OCP\AppFramework\Http::STATUS_OK);
11         $this->addHeader('Content-Type', 'application/x-www-form-urlencoded');
12         $this->data = $data;
13     }
14
15     public function render()
16     {
17         return http_build_query($this->data, null, '&');
18     }
19 }
20 ?>