Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaningModel.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | * you can't use this to construct a new DM from scratch (yet) |
23 | 23 | * you can't (yet) provide a dataset-context ($dc) |
24 | 24 | * @param $definedMeaningId the database ID of the DM |
25 | | - * @param $viewInformation Specify specific ViewInformation, if needed. |
| 25 | + * @param $viewInformation Optional: Specify specific ViewInformation, if needed. |
26 | 26 | */ |
27 | 27 | public function __construct($definedMeaningId, $viewInformation=null) { |
28 | 28 | |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | /* Sorry, don't know what horrible cannibalised hacks are. Therefore I cannot update code properly. |
68 | 68 | * Please check if it still works correctly. Peter-Jan Roes. |
69 | 69 | */ |
| 70 | + /* :-D */ |
70 | 71 | public function save() { |
71 | 72 | initializeOmegaWikiAttributes($this->viewInformation); |
72 | 73 | initializeObjectAttributeEditors($this->viewInformation); |
Index: trunk/extensions/Wikidata/OmegaWiki/SaveDM.php |
— | — | @@ -51,6 +51,7 @@ |
52 | 52 | |
53 | 53 | $record=$model->getRecord(); |
54 | 54 | echo $record; |
| 55 | +echo $record->getAttributeValue(new Attribute("defined-meaning-full-defining-expression")); |
55 | 56 | |
56 | 57 | $endTime = time(); |
57 | 58 | echo("\n\nTime elapsed: " . durationToString($endTime - $beginTime)); |