Differential D14028 Diff 34906 src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php
| <?php | <?php | ||||
| final class PhabricatorXHPASTViewFrameController | final class PhabricatorXHPASTViewFrameController | ||||
| 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'); | ||||
| return $this->buildStandardPageResponse( | return $this->buildStandardPageResponse( | ||||
| phutil_tag( | phutil_tag( | ||||
| 'iframe', | 'iframe', | ||||
| array( | array( | ||||
| 'src' => '/xhpast/frameset/'.$id.'/', | 'src' => "/xhpast/frameset/{$id}/", | ||||
| 'frameborder' => '0', | 'frameborder' => '0', | ||||
| 'style' => 'width: 100%; height: 800px;', | 'style' => 'width: 100%; height: 800px;', | ||||
| '', | '', | ||||
| )), | )), | ||||
| array( | array( | ||||
| 'title' => pht('XHPAST View'), | 'title' => pht('XHPAST View'), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||