2011-02-15 00:34:20 +01:00
|
|
|
<?php
|
|
|
|
|
2011-09-14 17:02:31 +02:00
|
|
|
/**
|
|
|
|
* @group search
|
|
|
|
*/
|
2011-02-15 00:34:20 +01:00
|
|
|
abstract class PhabricatorSearchBaseController extends PhabricatorController {
|
|
|
|
|
|
|
|
public function buildStandardPageResponse($view, array $data) {
|
|
|
|
$page = $this->buildStandardPageView();
|
|
|
|
|
|
|
|
$page->setApplicationName('Search');
|
|
|
|
$page->setBaseURI('/search/');
|
|
|
|
$page->setTitle(idx($data, 'title'));
|
2012-03-15 02:43:43 +01:00
|
|
|
$page->setGlyph("\xC2\xBF");
|
2011-02-15 00:34:20 +01:00
|
|
|
$page->appendChild($view);
|
|
|
|
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
|
|
return $response->setContent($page->render());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|