Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895230
PhabricatorConfigController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
952 B
Referenced Files
None
Subscribers
None
PhabricatorConfigController.php
View Options
<?php
abstract
class
PhabricatorConfigController
extends
PhabricatorController
{
public
function
shouldRequireAdmin
(
)
{
return
true
;
}
public
function
buildHeaderView
(
$text
,
$action
=
null
)
{
$viewer
=
$this
->
getViewer
(
)
;
$file
=
PhabricatorFile
::
loadBuiltin
(
$viewer
,
'projects/v3/manage.png'
)
;
$image
=
$file
->
getBestURI
(
$file
)
;
$header
=
id
(
new
PHUIHeaderView
(
)
)
->
setHeader
(
$text
)
->
setProfileHeader
(
true
)
->
setImage
(
$image
)
;
if
(
$action
)
{
$header
->
addActionLink
(
$action
)
;
}
return
$header
;
}
public
function
buildConfigBoxView
(
$title
,
$content
,
$action
=
null
)
{
$header
=
id
(
new
PHUIHeaderView
(
)
)
->
setHeader
(
$title
)
;
if
(
$action
)
{
$header
->
addActionItem
(
$action
)
;
}
$view
=
id
(
new
PHUIObjectBoxView
(
)
)
->
setHeader
(
$header
)
->
appendChild
(
$content
)
->
setBackground
(
PHUIObjectBoxView
::
WHITE_CONFIG
)
;
return
$view
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:08 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128773
Default Alt Text
PhabricatorConfigController.php (952 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment