PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
← All changes | backend/src/Entity/Field/FieldGeneralSettings.php +17 -16 1.1.1 → 1.5 View file →
@@ -250,44 +250,45 @@
250 250 $this->fieldGeneralSettings->setPhoneAutoDetect($val);
251 251 }
252 252
253 253 /**
254 - * Get showRatingText flag.
254 + * Get the HTML content of the form field.
255 255 *
256 - * @return bool
256 + * @return string The HTML content.
257 257 */
258 - public function isShowRatingText(): bool
258 + public function getHtmlContent(): string
259 259 {
260 - return $this->fieldGeneralSettings->isShowRatingText();
260 + return $this->fieldGeneralSettings->getHtmlContent();
261 261 }
262 262
263 263 /**
264 - * Set showRatingText flag.
264 + * Set the HTML content of the form field.
265 265 *
266 - * @param bool $val
266 + * @param string $htmlContent The HTML content to set.
267 267 */
268 - public function setShowRatingText(bool $val): void
268 + public function setHtmlContent(string $htmlContent): void
269 269 {
270 - $this->fieldGeneralSettings->setShowRatingText($val);
270 + $this->fieldGeneralSettings->setHtmlContent($htmlContent);
271 271 }
272 +
272 273 /**
273 - * Get the HTML content of the form field.
274 + * Get showRatingText flag.
274 275 *
275 - * @return string The HTML content.
276 + * @return bool
276 277 */
277 - public function getHtmlContent(): string
278 + public function isShowRatingText(): bool
278 279 {
279 - return $this->fieldGeneralSettings->getHtmlContent();
280 + return $this->fieldGeneralSettings->isShowRatingText();
280 281 }
281 282
282 283 /**
283 - * Set the HTML content of the form field.
284 + * Set showRatingText flag.
284 285 *
285 - * @param string $htmlContent The HTML content to set.
286 + * @param bool $val
286 287 */
287 - public function setHtmlContent(string $htmlContent): void
288 + public function setShowRatingText(bool $val): void
288 289 {
289 - $this->fieldGeneralSettings->setHtmlContent($htmlContent);
290 + $this->fieldGeneralSettings->setShowRatingText($val);
290 291 }
291 292
292 293 /**
293 294 * Get the agreement text of the form field.