public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
public function __construct($events)
public function __construct($events)
Parameters
array | $events |
Return
this | //Implicit.// |
public function getTimeSpentOnObject($phid, $now)
public function getTimeSpentOnObject($phid, $now)
Parameters
$phid | ||
$now |
Return
wild |
public function getObjectTimeRanges()
public function getObjectTimeRanges()
Return
wild |
public function getCurrentWorkStack($now, $include_inactive)
public function getCurrentWorkStack($now, $include_inactive)
Returns the current list of work.
Parameters
$now | ||
$include_inactive |
Return
wild |
public static function mergeTimeRanges($ranges)
public static function mergeTimeRanges($ranges)
Merge a list of time ranges (pairs of <start, end> epochs) so that no elements overlap. For example, the ranges:
array( array(50, 150), array(100, 175), );
...are merged to:
array( array(50, 175), );
This is used to avoid double-counting time on objects which had timers started multiple times.
Parameters
list<pair<int, | $ranges | int>> List of possibly overlapping time ranges. |
Return
list<pair<int, int>> | Nonoverlapping time ranges. |
public static function sortTimeline($u, $v)
public static function sortTimeline($u, $v)
Sort events in timeline order. Notably, for events which occur on the same second, we want to process end events after start events.
Parameters
array | $u | |
array | $v |
Return
wild |