Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99240303
ConduitAPI_phrequent_tracking_Method.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
Wed, Jan 22, 16:50
Size
921 B
Mime Type
text/x-php
Expires
Fri, Jan 24, 16:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23750507
Attached To
rPH Phabricator
ConduitAPI_phrequent_tracking_Method.php
View Options
<?php
final
class
ConduitAPI_phrequent_tracking_Method
extends
ConduitAPI_phrequent_Method
{
public
function
getMethodDescription
()
{
return
pht
(
'Returns current objects being tracked in Phrequent.'
);
}
public
function
getMethodStatus
()
{
return
self
::
METHOD_STATUS_UNSTABLE
;
}
public
function
defineParamTypes
()
{
return
array
();
}
public
function
defineReturnType
()
{
return
'array'
;
}
public
function
defineErrorTypes
()
{
return
array
(
);
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$user
=
$request
->
getUser
();
$times
=
id
(
new
PhrequentUserTimeQuery
())
->
setViewer
(
$user
)
->
needPreemptingEvents
(
true
)
->
withUserPHIDs
(
array
(
$user
->
getPHID
()))
->
execute
();
$now
=
time
();
$results
=
id
(
new
PhrequentTimeBlock
(
$times
))
->
getCurrentWorkStack
(
$now
);
return
array
(
'data'
=>
$results
);
}
}
Event Timeline
Log In to Comment