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