| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Traits;
- // to do disable title
- /**
- * Title elements related functions
- *
- * @autor ThurData <info@thurdata.ch>
- */
- trait WidgetView
- {
- protected $isViewHeader = true;
- protected $isViewFooter = true;
- protected $isViewTopBody = true;
- public function enabledViewHeader()
- {
- $this->isViewHeader = true;
-
- return $this;
- }
- public function disabledViewHeader()
- {
- $this->isViewHeader = false;
-
- return $this;
- }
- public function isViewHeader()
- {
- return $this->isViewHeader;
- }
-
- public function enabledViewFooter()
- {
- $this->isViewFooter = true;
-
- return $this;
- }
- public function disabledViewFooter()
- {
- $this->isViewFooter = false;
-
- return $this;
- }
- public function isViewFooter()
- {
- return $this->isViewFooter;
- }
-
- public function enabledViewTopBody()
- {
- $this->isViewTopBody = true;
-
- return $this;
- }
- public function disabledViewTopBody()
- {
- $this->isViewTopBody = false;
-
- return $this;
- }
- public function isViewTopBody()
- {
- return $this->isViewTopBody;
- }
- }
|