Esempio n. 1
0
 protected function parseJsonToUpdateObject($json)
 {
     $parsedObject = json_decode($json, true);
     if (is_null($parsedObject)) {
         return null;
     }
     $objName = key($parsedObject);
     if ($objName == $this->getObjectName()) {
         // Update the current object
         Zipmark_Base::buildObject($objName, $parsedObject[$objName], $this);
     }
 }