Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/handle/pool/PhabricatorHandleList.php
| Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | /* -( Rendering )---------------------------------------------------------- */ | ||||
| * Return a @{class:PHUIHandleListView} which can render the handles in | * Return a @{class:PHUIHandleListView} which can render the handles in | ||||
| * this list. | * this list. | ||||
| */ | */ | ||||
| public function renderList() { | public function renderList() { | ||||
| return id(new PHUIHandleListView()) | return id(new PHUIHandleListView()) | ||||
| ->setHandleList($this); | ->setHandleList($this); | ||||
| } | } | ||||
| public function newListView() { | |||||
| return id(new FuelHandleListView()) | |||||
| ->addHandleList($this); | |||||
| } | |||||
| /** | /** | ||||
| * Return a @{class:PHUIHandleView} which can render a specific handle. | * Return a @{class:PHUIHandleView} which can render a specific handle. | ||||
| */ | */ | ||||
| public function renderHandle($phid) { | public function renderHandle($phid) { | ||||
| if (!isset($this[$phid])) { | if (!isset($this[$phid])) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht('Trying to render a handle which does not exist!')); | pht('Trying to render a handle which does not exist!')); | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||