| 1 | <?php |
||
| 3 | class Xhgui_Saver_Mongo implements Xhgui_Saver_Interface |
||
| 4 | { |
||
| 5 | /** |
||
| 6 | * @var MongoCollection |
||
| 7 | */ |
||
| 8 | private $_collection; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var MongoId lastProfilingId |
||
| 12 | */ |
||
| 13 | private static $lastProfilingId; |
||
| 14 | |||
| 15 | public function __construct(MongoCollection $collection) |
||
| 19 | |||
| 20 | public function save(array $data) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Return profiling ID |
||
| 43 | * @return MongoId lastProfilingId |
||
| 44 | */ |
||
| 45 | public static function getLastProfilingId() { |
||
| 51 | } |
||
| 52 |