Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F467731
PhabricatorPhrequentApplication.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
PhabricatorPhrequentApplication.php
View Options
<?php
final
class
PhabricatorPhrequentApplication
extends
PhabricatorApplication
{
public
function
getShortDescription
()
{
return
pht
(
'Track Time Spent'
);
}
public
function
getBaseURI
()
{
return
'/phrequent/'
;
}
public
function
isBeta
()
{
return
true
;
}
public
function
getIconName
()
{
return
'phrequent'
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getApplicationOrder
()
{
return
0.110
;
}
public
function
getEventListeners
()
{
return
array
(
new
PhrequentUIEventListener
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/phrequent/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhrequentListController'
,
'track/(?P<verb>[a-z]+)/(?P<phid>[^/]+)/'
=>
'PhrequentTrackController'
),
);
}
public
function
loadStatus
(
PhabricatorUser
$user
)
{
$status
=
array
();
// Show number of objects that are currently
// being tracked for a user.
$count
=
PhrequentUserTimeQuery
::
getUserTotalObjectsTracked
(
$user
);
$type
=
PhabricatorApplicationStatusView
::
TYPE_NEEDS_ATTENTION
;
$status
[]
=
id
(
new
PhabricatorApplicationStatusView
())
->
setType
(
$type
)
->
setText
(
pht
(
'%d Object(s) Tracked'
,
$count
))
->
setCount
(
$count
);
return
$status
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 3:44 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
81160
Default Alt Text
PhabricatorPhrequentApplication.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment