Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class LocalDoc extends AbstractDoc { |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @brief Removes `_local/` from he document identifier. |
||
26 | */ |
||
27 | protected function fixDocId() { |
||
28 | if (isset($this->meta['_id'])) |
||
29 | $this->meta['_id'] = preg_replace('%\A_local/%m', "", $this->meta['_id']); |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @brief Gets the document path: `_local/`. |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getPath() { |
||
39 | } |
||
40 | |||
41 | } |