Page MenuHomePhabricator

DifferentialExtensionsRevisionListController.php

Authored By
epriestley
Aug 31 2015, 8:09 PM
Size
917 B
Referenced Files
None
Subscribers
None

DifferentialExtensionsRevisionListController.php

<?php
final class DifferentialExtensionsRevisionListController
extends DifferentialController {
private $queryKey;
public function shouldAllowPublic() {
return true;
}
public function willProcessRequest(array $data) {
$this->queryKey = idx($data, 'queryKey');
}
public function processRequest() {
$controller = id(new PhabricatorApplicationSearchController())
->setQueryKey($this->queryKey)
->setSearchEngine(new DifferentialExtensionsRevisionSearchEngine())
->setNavigation($this->buildSideNavView());
return $this->delegateToController($controller);
}
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(
id(new PHUIListItemView())
->setHref('/differential/diff/create/')
->setName(pht('Create Diff'))
->setIcon('fa-plus-square'));
return $crumbs;
}
}

File Metadata

Mime Type
text/x-php
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/mq/ix/up56icfwbw6xjbua
Default Alt Text
DifferentialExtensionsRevisionListController.php (917 B)

Event Timeline