Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96172830
PhabricatorBarePageUIExample.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
Mon, Dec 23, 10:50
Size
522 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 10:50 (2 d)
Engine
blob
Format
Raw Data
Handle
23137691
Attached To
rPH Phabricator
PhabricatorBarePageUIExample.php
View Options
<?php
final
class
PhabricatorBarePageUIExample
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