Source of file WYSIWYGElement.php
Size: 0,926 Bytes - Last Modified: 2021-12-23T10:49:33+00:00
/var/www/docs.ssmods.com/process/src/src/Model/WYSIWYGElement.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | <?php namespace Symbiote\ContentReplace\Model; use SilverStripe\View\ViewableData; use SilverStripe\Assets\File; class WYSIWYGElement extends ViewableData { /** * the HTML content inside link * * @var string */ protected $linkHTML = ""; /** * @var File|null */ protected $file = null; /** * @return File|null */ public function getFile() { return $this->file; } /** * Set an HTML attributes on element */ public function setLinkHTML(string $linkHTML) { $this->linkHTML = $linkHTML; return $this; } /** * @return string */ public function getLinkHTML() { return $this->linkHTML; } public function setFile(File $file) { $this->file = $file; return $this; } public function getFileId() { return $this->file->ID; } } |