Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| FileRdf | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| add | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| remove | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| search | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getIterator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; under version 2 |
| 7 | * of the License (non-upgradable). |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | * |
| 18 | * Copyright (c) 2015 (original work) Open Assessment Technologies SA |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | namespace oat\generis\model\kernel\persistence\file; |
| 23 | |
| 24 | use oat\generis\model\data\RdfInterface; |
| 25 | |
| 26 | /** |
| 27 | * Implementation of the RDF interface for the file driver |
| 28 | * |
| 29 | * @author joel bout <joel@taotesting.com> |
| 30 | * @package generis |
| 31 | */ |
| 32 | class FileRdf implements RdfInterface |
| 33 | { |
| 34 | /** |
| 35 | * @var string |
| 36 | */ |
| 37 | private $file; |
| 38 | |
| 39 | public function __construct($file) |
| 40 | { |
| 41 | $this->file = $file; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * (non-PHPdoc) |
| 46 | * @see \oat\generis\model\data\RdfInterface::get() |
| 47 | */ |
| 48 | public function get($subject, $predicate) |
| 49 | { |
| 50 | throw new \common_Exception('Not implemented'); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * (non-PHPdoc) |
| 55 | * @see \oat\generis\model\data\RdfInterface::add() |
| 56 | */ |
| 57 | public function add(\core_kernel_classes_Triple $triple) |
| 58 | { |
| 59 | throw new \common_Exception('Not implemented'); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * (non-PHPdoc) |
| 64 | * @see \oat\generis\model\data\RdfInterface::remove() |
| 65 | */ |
| 66 | public function remove(\core_kernel_classes_Triple $triple) |
| 67 | { |
| 68 | throw new \common_Exception('Not implemented'); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * (non-PHPdoc) |
| 73 | * @see \oat\generis\model\data\RdfInterface::search() |
| 74 | */ |
| 75 | public function search($predicate, $object) |
| 76 | { |
| 77 | throw new \common_Exception('Not implemented'); |
| 78 | } |
| 79 | |
| 80 | public function getIterator() |
| 81 | { |
| 82 | return new FileIterator($this->file); |
| 83 | } |
| 84 | } |