Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115514477
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
Sun, Jun 1, 12:12
Size
973 B
Mime Type
text/x-php
Expires
Tue, Jun 3, 12:12 (2 d)
Engine
blob
Format
Raw Data
Handle
26497077
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
)
->
withEnded
(
PhrequentUserTimeQuery
::
ENDED_NO
)
->
withUserPHIDs
(
array
(
$user
->
getPHID
()))
->
execute
();
$now
=
time
();
$results
=
id
(
new
PhrequentTimeBlock
(
$times
))
->
getCurrentWorkStack
(
$now
);
return
array
(
'data'
=>
$results
);
}
}
Event Timeline
Log In to Comment