Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93931373
PhortuneAccountProfileController.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 2, 14:42
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 14:42 (2 d)
Engine
blob
Format
Raw Data
Handle
22718076
Attached To
rPH Phabricator
PhortuneAccountProfileController.php
View Options
<?php
abstract
class
PhortuneAccountProfileController
extends
PhortuneAccountController
{
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
()->
getMenu
();
}
protected
function
buildHeaderView
()
{
$viewer
=
$this
->
getViewer
();
$account
=
$this
->
getAccount
();
$title
=
$account
->
getName
();
$header
=
id
(
new
PHUIHeaderView
())
->
setUser
(
$viewer
)
->
setHeader
(
$title
)
->
setHeaderIcon
(
'fa-user-circle'
);
return
$header
;
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
return
$crumbs
;
}
protected
function
buildSideNavView
(
$filter
=
null
)
{
$viewer
=
$this
->
getViewer
();
$account
=
$this
->
getAccount
();
$id
=
$account
->
getID
();
$nav
=
id
(
new
AphrontSideNavFilterView
())
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
pht
(
'Account'
));
$nav
->
addFilter
(
'overview'
,
pht
(
'Overview'
),
$this
->
getApplicationURI
(
"/{$id}/"
),
'fa-user-circle'
);
$nav
->
addFilter
(
'subscriptions'
,
pht
(
'Subscriptions'
),
$this
->
getApplicationURI
(
"/account/subscription/{$id}/"
),
'fa-retweet'
);
$nav
->
addFilter
(
'billing'
,
pht
(
'Billing / History'
),
$this
->
getApplicationURI
(
"/account/billing/{$id}/"
),
'fa-credit-card'
);
$nav
->
addFilter
(
'managers'
,
pht
(
'Managers'
),
$this
->
getApplicationURI
(
"/account/manager/{$id}/"
),
'fa-group'
);
$nav
->
selectFilter
(
$filter
);
return
$nav
;
}
}
Event Timeline
Log In to Comment