/** * Gets a content properties object for the submitted form * @return joppa\content\model\ContentProperties */ public function getContentProperties() { $properties = new ContentProperties(); $properties->setModelName($this->getValue(self::FIELD_MODEL)); $properties->setRecursiveDepth($this->getValue(self::FIELD_RECURSIVE_DEPTH)); $properties->setIncludeUnlocalized($this->getValue(self::FIELD_INCLUDE_UNLOCALIZED)); $properties->setView($this->getValue(self::FIELD_VIEW)); $fields = $this->getValue(self::FIELD_FIELDS); if ($fields) { $properties->setModelFields($fields); } return $properties; }