Page MenuHomePhorge
Diviner Tech Docs PhrequentTimeBlock

final class PhrequentTimeBlock
Phorge Technical Documentation (Phrequent)

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

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$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function __construct($events)

This method is not documented.
Parameters
array$events
Return
this//Implicit.//

public function getTimeSpentOnObject($phid, $now)

This method is not documented.
Parameters
$phid
$now
Return
wild

public function getObjectTimeRanges()

This method is not documented.
Return
wild

public function getCurrentWorkStack($now, $include_inactive)

Returns the current list of work.

Parameters
$now
$include_inactive
Return
wild

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,$rangesint>> List of possibly overlapping time ranges.
Return
list<pair<int, int>>Nonoverlapping time ranges.

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