Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93140502
PhabricatorBarePageExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 26, 12:34
Size
520 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 12:34 (2 d)
Engine
blob
Format
Raw Data
Handle
22580303
Attached To
rPH Phabricator
PhabricatorBarePageExample.php
View Options
<?php
final
class
PhabricatorBarePageExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
'Bare Page'
;
}
public
function
getDescription
()
{
return
'This is a bare page.'
;
}
public
function
renderExample
()
{
$view
=
new
PhabricatorBarePageView
();
$view
->
appendChild
(
phutil_tag
(
'h1'
,
array
(),
$this
->
getDescription
()));
$response
=
new
AphrontWebpageResponse
();
$response
->
setContent
(
$view
->
render
());
return
$response
;
}
}
Event Timeline
Log In to Comment