[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 323 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct(array $events) X-Ref |
No description |
getTimeSpentOnObject($phid, $now) X-Ref |
No description |
getObjectTimeRanges() X-Ref |
No description |
getCurrentWorkStack($now, $include_inactive = false) X-Ref |
Returns the current list of work. |
mergeTimeRanges(array $ranges) X-Ref |
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. param: list<pair<int, int>> List of possibly overlapping time ranges. return: list<pair<int, int>> Nonoverlapping time ranges. |
sortTimeline(array $u, array $v) X-Ref |
Sort events in timeline order. Notably, for events which occur on the same second, we want to process end events after start events. |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |