2011-04-07 04:17:05 +02:00
|
|
|
<?php
|
|
|
|
|
2012-03-10 00:46:25 +01:00
|
|
|
final class PhabricatorXHPASTViewFramesetController
|
2011-04-07 04:17:05 +02:00
|
|
|
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);
|
2013-11-11 18:23:23 +01:00
|
|
|
$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}/")),
|
|
|
|
)));
|
2011-04-07 04:17:05 +02:00
|
|
|
|
|
|
|
return $response;
|
|
|
|
}
|
|
|
|
}
|