Page MenuHomestyx hydra

ConduitAPI_phrequent_tracking_Method.php
No OneTemporary

ConduitAPI_phrequent_tracking_Method.php

<?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);
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 7:56 PM (23 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
431027
Default Alt Text
ConduitAPI_phrequent_tracking_Method.php (973 B)

Event Timeline