123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /**
- *
- * Cube Framework $Id$ Di8LQcc0lj3BsyXteZNW5C60iuAQTRinwVHNVqXXWZU=
- *
- * @link http://codecu.be/framework
- * @copyright Copyright (c) 2014 CodeCube SRL
- * @license http://codecu.be/framework/license Commercial License
- *
- * @version 1.3
- */
- /**
- * submit form element generator class
- */
- namespace Cube\Form\Element;
- use Cube\Form\Element;
- class Submit extends Element
- {
- /**
- *
- * type of element - override the variable from the parent class
- *
- * @var string
- */
- protected $_element = 'submit';
- /**
- *
- * class constructor
- *
- * @param string $name
- */
- public function __construct($name)
- {
- parent::__construct($this->_element, $name);
- }
- /**
- *
- * get translated submit element value
- *
- * @return string
- */
- public function getValue()
- {
- $value = parent::getValue();
- return $this->getTranslate()->_($value);
- }
- }
|