Differential D13674 Diff 33071 src/applications/phpast/controller/PhabricatorXHPASTViewPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phpast/controller/PhabricatorXHPASTViewPanelController.php
<?php | <?php | ||||
abstract class PhabricatorXHPASTViewPanelController | abstract class PhabricatorXHPASTViewPanelController | ||||
extends PhabricatorXHPASTViewController { | extends PhabricatorXHPASTViewController { | ||||
private $id; | private $id; | ||||
private $storageTree; | private $storageTree; | ||||
public function shouldAllowPublic() { | |||||
return true; | |||||
} | |||||
public function willProcessRequest(array $data) { | public function willProcessRequest(array $data) { | ||||
$this->id = $data['id']; | $this->id = $data['id']; | ||||
$this->storageTree = id(new PhabricatorXHPASTViewParseTree()) | $this->storageTree = id(new PhabricatorXHPASTViewParseTree()) | ||||
->load($this->id); | ->load($this->id); | ||||
if (!$this->storageTree) { | if (!$this->storageTree) { | ||||
throw new Exception(pht('No such AST!')); | throw new Exception(pht('No such AST!')); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |