12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace Ppb\Form\Element;
- use Cube\Form\Element\Hidden,
- Cube\Controller\Front;
- class PriceDescription extends Hidden
- {
-
- public function __construct($name)
- {
- parent::__construct($name);
- $this->setHidden(false);
- }
-
- public function render()
- {
- $currency = $this->getPrefix();
- $view = Front::getInstance()->getBootstrap()->getResource('view');
- return $view->amount($this->getValue(), $currency) . parent::render();
- }
- }
|