public function setFromPost($properties = null) { if (!isset($properties) || in_array('moduleId', $properties)) { $value = Util\Converter::int('moduleId' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setModuleId($value); } } if (!isset($properties) || in_array('appId', $properties)) { $value = Util\Converter::int('appId' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setAppId($value); } } if (!isset($properties) || in_array('contentGroup', $properties)) { $value = Util\Converter::int('contentGroup' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setContentGroup($value); } } if (!isset($properties) || in_array('filterId', $properties)) { $value = Util\Converter::int('filterId' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setFilterId($value); } } if (!isset($properties) || in_array('authorId', $properties)) { $value = Util\Converter::int('authorId' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setAuthorId($value); } } if (!isset($properties) || in_array('publisherId', $properties)) { $value = Util\Converter::int('publisherId' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setPublisherId($value); } } if (!isset($properties) || in_array('title', $properties)) { $value = Util\Converter::string('title' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setTitle($value); } } if (!isset($properties) || in_array('urlFriendlyTitle', $properties)) { $value = Util\Converter::string('urlFriendlyTitle' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setUrlFriendlyTitle($value); } } if (!isset($properties) || in_array('useExpiration', $properties)) { $value = Util\Converter::bool('useExpiration' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setUseExpiration($value); } } if (!isset($properties) || in_array('goLiveDate', $properties)) { $value = Util\Converter::datetime('goLiveDate' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setGoLiveDate($value); } } if (!isset($properties) || in_array('expiryDate', $properties)) { $value = Util\Converter::datetime('expiryDate' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setExpiryDate($value); } } if (!isset($properties) || in_array('publishedDate', $properties)) { $value = Util\Converter::datetime('publishedDate' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setPublishedDate($value); } } if (!isset($properties) || in_array('version', $properties)) { $value = Util\Converter::int('version' . $this->unique, 'post'); if (isset($value)) { $this->getModel()->setVersion($value); } } $this->token = Util\Converter::string('token' . $this->unique, 'post', $this->token); return $this; }