1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php

29 lines
702 B
PHP
Raw Normal View History

2011-04-07 04:17:05 +02:00
<?php
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);
$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;
}
}