Axiom (v1.2.0)

A lightweight PHP framework
H:/Workspace/php-axiom/www/php-axiom/libraries/axiom/axInputHelper.class.php
Go to the documentation of this file.
00001 <?php
00016 class axInputHelper extends axBaseHelper {
00017 
00024     public function __construct ($name, $type = "text", $value = "") {
00025         parent::__construct('input', array('name' => $name, 'value' => $value, 'type' => $type));
00026     }
00027 
00031     public function getValue () {
00032         return $this->_attributes['value'];
00033     }
00034 
00038     public function setValue ($value) {
00039         $this->_attributes['value'] = $value;
00040         return $this;
00041     }
00042 
00046     public function appendChild ($node) {
00047         throw new LogicException("Cannot append nodes in input tags", 3005);
00048     }
00049     
00056     public static function export ($name, $type = "text", $value = "") {
00057         return new self($name, $type, $value);
00058     }
00059 }
 All Data Structures Files Functions Variables