Exemple #1
0
 public function doNodeUpdate(CMSNode $node, $extra)
 {
     $data = $this->getJSON();
     if (!array_key_exists($data['id']) || $data['id'] != $node->id) {
         throw new InvalidArgumentException('node id mismatch');
     }
     $node->unserialize($data);
     $this->response = $node->serialize();
 }