DescriptionHidden.php 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ 4mKjTuIth3YF5a/eLSQQM17uu7U3E0sIyI1zcsWMEU8=
  5. *
  6. * @link http://www.phpprobid.com
  7. * @copyright Copyright (c) 2014 Online Ventures Software LTD & CodeCube SRL
  8. * @license http://www.phpprobid.com/license Commercial License
  9. *
  10. * @version 7.0
  11. */
  12. /**
  13. * description field with hidden element attached
  14. */
  15. namespace Ppb\Form\Element;
  16. use Cube\Form\Element\Hidden;
  17. class DescriptionHidden extends Hidden
  18. {
  19. /**
  20. *
  21. * class constructor
  22. *
  23. * @param string $name
  24. */
  25. public function __construct($name)
  26. {
  27. parent::__construct($name);
  28. $this->setHidden(false);
  29. }
  30. /**
  31. *
  32. * render pseudo element
  33. *
  34. * @return string
  35. */
  36. public function render()
  37. {
  38. return $this->getPrefix() . ' '
  39. . $this->getValue() . ' '
  40. . $this->getSuffix()
  41. . parent::render();
  42. }
  43. }