model/DataObject.php 1 location
|
@@ 31-40 (lines=10) @@
|
| 28 |
|
* @param Model $model |
| 29 |
|
* @param EasyRdf_Resource $resource |
| 30 |
|
*/ |
| 31 |
|
public function __construct($model, $resource) |
| 32 |
|
{ |
| 33 |
|
if (!($model instanceof Model) || !($resource instanceof EasyRdf_Resource)) { |
| 34 |
|
throw new Exception('Invalid constructor parameter given to DataObject.'); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
$this->model = $model; |
| 38 |
|
$this->resource = $resource; |
| 39 |
|
$this->order = array(); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** |
| 43 |
|
* Generates and makes a query into a external vocabulary for an exact |
model/VocabularyCategory.php 1 location
|
@@ 13-22 (lines=10) @@
|
| 10 |
|
*/ |
| 11 |
|
class VocabularyCategory extends DataObject |
| 12 |
|
{ |
| 13 |
|
public function __construct($model, $resource) |
| 14 |
|
{ |
| 15 |
|
if (!($model instanceof Model)) { |
| 16 |
|
throw new Exception('Invalid constructor parameter given to DataObject.'); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
$this->model = $model; |
| 20 |
|
$this->resource = $resource; |
| 21 |
|
$this->order = array(); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
/** |
| 25 |
|
* Returns all vocabularies in the category. |