~ubuntu-branches/ubuntu/vivid/phabricator/vivid-proposed

« back to all changes in this revision

Viewing changes to phabricator/src/applications/drydock/controller/DrydockLeaseListController.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-10-23 20:49:26 UTC
  • Revision ID: package-import@ubuntu.com-20141023204926-ar20vnfjqwxysrce
Tags: upstream-0~git20141023
ImportĀ upstreamĀ versionĀ 0~git20141023

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class DrydockLeaseListController extends DrydockLeaseController {
 
4
 
 
5
  private $queryKey;
 
6
 
 
7
  public function shouldAllowPublic() {
 
8
    return true;
 
9
  }
 
10
 
 
11
  public function willProcessRequest(array $data) {
 
12
    $this->queryKey = idx($data, 'queryKey');
 
13
  }
 
14
 
 
15
  public function processRequest() {
 
16
    $controller = id(new PhabricatorApplicationSearchController())
 
17
      ->setQueryKey($this->queryKey)
 
18
      ->setSearchEngine(new DrydockLeaseSearchEngine())
 
19
      ->setNavigation($this->buildSideNavView());
 
20
 
 
21
    return $this->delegateToController($controller);
 
22
  }
 
23
 
 
24
}