Files
phabricator/src/applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php

30 lines
646 B
PHP
Raw Normal View History

2011-04-06 19:17:05 -07:00
<?php
final class PhabricatorXHPASTViewFramesetController
2011-04-06 19:17:05 -07: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(hsprintf(
'<frameset cols="33%%, 34%%, 33%%">'.
'<frame src="/xhpast/input/%s/" />'.
'<frame src="/xhpast/tree/%s/" />'.
'<frame src="/xhpast/stream/%s/" />'.
'</frameset>',
$id,
$id,
$id));
2011-04-06 19:17:05 -07:00
return $response;
}
}