Esempio n. 1
0
 public function buildAddGraph()
 {
     $createIndex = json_decode($this->postData->new, true);
     if (count($createIndex) == 0) {
         return;
     }
     $g = $this->_getEmptyGraph();
     $g->mergeIndex($createIndex);
     //tease out the special cases for Permissionings and Taggings
     $newTagsGraph = $g->extractGraphAroundProp('tagging:tag');
     $g->removeProp("tagging:tag");
     if ($g->resourceCount() > 0) {
         $newTagging = new Tagging(false, array('properties' => array('newTagGraph' => $newTagsGraph)));
         $newTagging->buildUpdateGraph();
         $this->addGraph->mergeResourceGraph($newTagging->updateGraph);
     }
     $this->addGraph->mergeResourceGraph($g);
 }