/** * @param Model\Document $document * @throws \Zend_Json_Exception */ protected function addSettingsToDocument(Model\Document $document) { // settings if ($this->getParam("settings")) { if ($document->isAllowed("settings")) { $settings = \Zend_Json::decode($this->getParam("settings")); $document->setValues($settings); } } }