Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546762
PHUIBigInfoExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PHUIBigInfoExample.php
View Options
<?php
final
class
PHUIBigInfoExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
pht
(
'Big Info View'
);
}
public
function
getDescription
()
{
return
pht
(
'Basic New User State information block.'
);
}
public
function
renderExample
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$image
=
PhabricatorFile
::
loadBuiltin
(
$viewer
,
'projects/v3/rocket.png'
);
$button
=
id
(
new
PHUIButtonView
())
->
setTag
(
'a'
)
->
setText
(
pht
(
'Launch Away'
))
->
setColor
(
PHUIButtonView
::
GREEN
)
->
setHref
(
'#'
);
$views
=
array
();
$views
[]
=
id
(
new
PHUIBigInfoView
())
->
setTitle
(
pht
(
'Simply Slim'
))
->
setDescription
(
pht
(
'A simple description'
))
->
addAction
(
$button
);
$views
[]
=
id
(
new
PHUIBigInfoView
())
->
setTitle
(
pht
(
'Basicly Basic'
))
->
setIcon
(
'fa-rocket'
)
->
setDescription
(
pht
(
'A more basic description'
))
->
addAction
(
$button
);
$views
[]
=
id
(
new
PHUIBigInfoView
())
->
setTitle
(
pht
(
'A Modern Example'
))
->
setImage
(
$image
->
getBestURI
())
->
setDescription
(
pht
(
'A modern description with lots of frills.'
))
->
addAction
(
$button
);
return
phutil_tag_div
(
'ml'
,
$views
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
116481
Default Alt Text
PHUIBigInfoExample.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment