mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
a29b5b070f
Test Plan: Looked at a diff with inline comment. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7549
28 lines
702 B
PHP
28 lines
702 B
PHP
<?php
|
|
|
|
final class PhabricatorXHPASTViewFramesetController
|
|
extends PhabricatorXHPASTViewController {
|
|
|
|
private $id;
|
|
|
|
public function willProcessRequest(array $data) {
|
|
$this->id = $data['id'];
|
|
}
|
|
|
|
public function processRequest() {
|
|
$id = $this->id;
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
$response->setFrameable(true);
|
|
$response->setContent(phutil_tag(
|
|
'frameset',
|
|
array('cols' => '33%, 34%, 33%'),
|
|
array(
|
|
phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")),
|
|
phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")),
|
|
phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/")),
|
|
)));
|
|
|
|
return $response;
|
|
}
|
|
}
|