Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109992889
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
Thu, Apr 24, 06:51
Size
520 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 06:51 (2 d)
Engine
blob
Format
Raw Data
Handle
25684074
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