Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103456950
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
Sun, Mar 2, 04:51
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Mar 4, 04:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24582321
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