Path: blob/master/src/applications/legalpad/controller/LegalpadDocumentListController.php
13452 views
<?php12final class LegalpadDocumentListController extends LegalpadController {34public function shouldAllowPublic() {5return true;6}78public function handleRequest(AphrontRequest $request) {9$querykey = $request->getURIData('queryKey');1011$controller = id(new PhabricatorApplicationSearchController())12->setQueryKey($querykey)13->setSearchEngine(new LegalpadDocumentSearchEngine())14->setNavigation($this->buildSideNav());1516return $this->delegateToController($controller);17}1819protected function buildApplicationCrumbs() {20$crumbs = parent::buildApplicationCrumbs();2122$can_create = $this->hasApplicationCapability(23LegalpadCreateDocumentsCapability::CAPABILITY);2425$crumbs->addAction(26id(new PHUIListItemView())27->setName(pht('Create Document'))28->setHref($this->getApplicationURI('edit/'))29->setIcon('fa-plus-square')30->setDisabled(!$can_create)31->setWorkflow(!$can_create));323334return $crumbs;35}3637}383940