Forms_ElementsAbstract

Description of FormElements.

Defined (1)

The class is defined in the following location(s).

/library/Forms/ElementsAbstract.php  
  1. abstract class Forms_ElementsAbstract { 
  2.  
  3. private $_type; 
  4. private $_id; 
  5. private $_name; 
  6. private $_value; 
  7. private $_label; 
  8. private $_attributes; 
  9. private $_before; 
  10. private $_after; 
  11. private $_wrapper_class = ''; 
  12.  
  13. abstract public function toString(); 
  14.  
  15. public function __construct($type, $id, $name, $value, $label = '', array $attributes = array(), $before = '', $after = '', $wrapper_class = '') { 
  16. $this->_type = $type; 
  17. $this->_id = $id; 
  18. $this->_name = $name; 
  19. $this->_value = $value; 
  20. $this->_label = $label; 
  21. $this->_attributes = $attributes; 
  22. $this->_before = $before; 
  23. $this->_after = $after; 
  24. $this->_wrapper_class = $wrapper_class; 
  25.  
  26. public function get_type() { 
  27. return $this->_type; 
  28.  
  29. public function set_type($_type) { 
  30. $this->_type = $_type; 
  31. return $this; 
  32.  
  33. public function get_id() { 
  34. return $this->_id; 
  35.  
  36. public function set_id($_id) { 
  37. $this->_id = $_id; 
  38. return $this; 
  39.  
  40. public function get_name() { 
  41. return $this->_name; 
  42.  
  43. public function set_name($_name) { 
  44. $this->_name = $_name; 
  45. return $this; 
  46.  
  47. public function get_value() { 
  48. return $this->_value; 
  49.  
  50. public function set_value($_value) { 
  51. $this->_value = $_value; 
  52. return $this; 
  53.  
  54. public function get_label() { 
  55. return $this->_label; 
  56.  
  57. public function set_label($_label) { 
  58. $this->_label = $_label; 
  59. return $this; 
  60.  
  61. public function get_attributes() { 
  62. return $this->_attributes; 
  63.  
  64. public function set_attributes($_attributes) { 
  65. $this->_attributes = $_attributes; 
  66. return $this; 
  67.  
  68. public function get_before() { 
  69. return $this->_before; 
  70.  
  71. public function set_before($_before) { 
  72. $this->_before = $_before; 
  73. return $this; 
  74.  
  75. public function get_after() { 
  76. return $this->_after; 
  77.  
  78. public function set_after($_after) { 
  79. $this->_after = $_after; 
  80. return $this; 
  81.  
  82. public function get_wrapper_class() { 
  83. return $this->_wrapper_class; 
  84.  
  85. public function set_wrapper_class($_wrapper_class) { 
  86. $this->_wrapper_class = $_wrapper_class; 
  87. return $this; 
  88.