forked from omeka/plugin-ItemRelations
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for item_relations_vocabularies to the API
- Loading branch information
root
committed
Jan 8, 2015
1 parent
a13dba7
commit 8a24be5
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
//GET only implementation to start with - will want to be able POST and PUT as well | ||
|
||
class Api_ItemRelationsVocabulary extends Omeka_Record_Api_AbstractRecordAdapter | ||
{ | ||
// Get the REST representation of a record. | ||
public function getRepresentation(Omeka_Record_AbstractRecord $record) | ||
{ | ||
return $record; | ||
// Return a PHP array, representing the passed record. | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ class ItemRelationsProperty extends Omeka_Record_AbstractRecord | |
*/ | ||
public $id; | ||
|
||
|
||
/** | ||
* @var int | ||
*/ | ||
|