Differential D14028 Diff 34906 src/applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php
| <?php | <?php | ||||
| final class PhabricatorXHPASTViewFramesetController | final class PhabricatorXHPASTViewFramesetController | ||||
| extends PhabricatorXHPASTViewController { | extends PhabricatorXHPASTViewController { | ||||
| public function shouldAllowPublic() { | public function shouldAllowPublic() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
| $id = $request->getURIData('id'); | $id = $request->getURIData('id'); | ||||
| $response = new AphrontWebpageResponse(); | return id(new AphrontWebpageResponse()) | ||||
| $response->setFrameable(true); | ->setFrameable(true) | ||||
| $response->setContent(phutil_tag( | ->setContent(phutil_tag( | ||||
| 'frameset', | 'frameset', | ||||
| array('cols' => '33%, 34%, 33%'), | array('cols' => '33%, 34%, 33%'), | ||||
| array( | array( | ||||
| phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")), | phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")), | ||||
| phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")), | phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")), | ||||
| phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/")), | phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/")), | ||||
| ))); | ))); | ||||
| return $response; | |||||
| } | } | ||||
| } | } | ||||