2011-02-14 15:34:20 -08:00
|
|
|
<?php
|
|
|
|
|
2011-09-14 08:02:31 -07:00
|
|
|
/**
|
|
|
|
* @group search
|
|
|
|
*/
|
2011-02-14 15:34:20 -08: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-14 18:43:43 -07:00
|
|
|
$page->setGlyph("\xC2\xBF");
|
2011-02-14 15:34:20 -08:00
|
|
|
$page->appendChild($view);
|
|
|
|
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
|
|
return $response->setContent($page->render());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|