| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Traits;
- /**
- * Description related functions
- *
- * @autor ThurData <info@thurdata.ch>
- */
- trait Description
- {
- protected $description = 'description';
- protected $raw = false;
- protected $allowHtmlTags = false;
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- public function getDescription()
- {
- return $this->description;
- }
- public function isRaw()
- {
- return $this->raw;
- }
- public function setRaw($raw)
- {
- $this->raw = (bool) $raw;
- return $this;
- }
-
- public function allowHtmlTags()
- {
- $this->allowHtmlTags = true;
-
- return $this;
- }
-
- public function disallowHtmlTags()
- {
- $this->allowHtmlTags = false;
-
- return $this;
- }
-
- public function isHtmlTagsAllowed()
- {
- return $this->allowHtmlTags;
- }
- }
|