Differential D13200 Diff 31965 src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php
| Show All 35 Lines | $form = id(new AphrontFormView()) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormTextAreaControl()) | id(new AphrontFormTextAreaControl()) | ||||
| ->setLabel(pht('Source')) | ->setLabel(pht('Source')) | ||||
| ->setName('source') | ->setName('source') | ||||
| ->setValue("<?php\n\n") | ->setValue("<?php\n\n") | ||||
| ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL)) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL)) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
| ->setValue('Parse')); | ->setValue(pht('Parse'))); | ||||
| $form_box = id(new PHUIObjectBoxView()) | $form_box = id(new PHUIObjectBoxView()) | ||||
| ->setHeaderText(pht('Generate XHP AST')) | ->setHeaderText(pht('Generate XHP AST')) | ||||
| ->setForm($form); | ->setForm($form); | ||||
| return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
| $form_box, | $form_box, | ||||
| array( | array( | ||||
| 'title' => pht('XHPAST View'), | 'title' => pht('XHPAST View'), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||