Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555012
PhrequentTrackingConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
975 B
Referenced Files
None
Subscribers
None
PhrequentTrackingConduitAPIMethod.php
View Options
<?php
final
class
PhrequentTrackingConduitAPIMethod
extends
PhrequentConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'phrequent.tracking'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Returns current objects being tracked in Phrequent.'
);
}
public
function
getMethodStatus
()
{
return
self
::
METHOD_STATUS_UNSTABLE
;
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
102900
Default Alt Text
PhrequentTrackingConduitAPIMethod.php (975 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment