| @@ 27-66 (lines=40) @@ | ||
| 24 | /** |
|
| 25 | * Class SmartFormSection |
|
| 26 | */ |
|
| 27 | class SmartFormSection extends \XoopsFormElement |
|
| 28 | { |
|
| 29 | /** |
|
| 30 | * Text |
|
| 31 | * @var string |
|
| 32 | * @access private |
|
| 33 | */ |
|
| 34 | public $_value; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * SmartFormSection constructor. |
|
| 38 | * @param $sectionname |
|
| 39 | * @param bool $value |
|
| 40 | */ |
|
| 41 | public function __construct($sectionname, $value = false) |
|
| 42 | { |
|
| 43 | $this->setName($sectionname); |
|
| 44 | $this->_value = $value; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Get the text |
|
| 49 | * |
|
| 50 | * @return string |
|
| 51 | */ |
|
| 52 | public function getValue() |
|
| 53 | { |
|
| 54 | return $this->_value; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * Prepare HTML for output |
|
| 59 | * |
|
| 60 | * @return string |
|
| 61 | */ |
|
| 62 | public function render() |
|
| 63 | { |
|
| 64 | return $this->getValue(); |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| @@ 27-66 (lines=40) @@ | ||
| 24 | /** |
|
| 25 | * Class SmartFormSectionClose |
|
| 26 | */ |
|
| 27 | class SmartFormSectionClose extends \XoopsFormElement |
|
| 28 | { |
|
| 29 | /** |
|
| 30 | * Text |
|
| 31 | * @var string |
|
| 32 | * @access private |
|
| 33 | */ |
|
| 34 | public $_value; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * SmartFormSectionClose constructor. |
|
| 38 | * @param $sectionname |
|
| 39 | * @param bool $value |
|
| 40 | */ |
|
| 41 | public function __construct($sectionname, $value = false) |
|
| 42 | { |
|
| 43 | $this->setName($sectionname); |
|
| 44 | $this->_value = $value; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Get the text |
|
| 49 | * |
|
| 50 | * @return string |
|
| 51 | */ |
|
| 52 | public function getValue() |
|
| 53 | { |
|
| 54 | return $this->_value; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * Prepare HTML for output |
|
| 59 | * |
|
| 60 | * @return string |
|
| 61 | */ |
|
| 62 | public function render() |
|
| 63 | { |
|
| 64 | return $this->getValue(); |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||