public function __construct(HTMLTags_URL $action, $current_limit, $limits_str = NULL)
 {
     parent::__construct();
     $this->current_limit = $current_limit;
     #echo "\$this->current_limit: $this->current_limit\n"; exit;
     if (!isset($limits_str)) {
         $limits_str = self::default_limits_str;
     }
     if (preg_match('/^(?:\\d+)(?: \\d+)*$/', $limits_str)) {
         $this->limits = explode(' ', $limits_str);
     } else {
         throw new Exception('$limits_str must be like \'NUM[ NUM]*\'');
     }
     $this->set_attribute_str('name', 'limit_setting');
     $this->set_action($action);
     $this->set_attribute_str('method', 'GET');
     $select = new HTMLTags_Select();
     $select->set_attribute_str('name', 'limit');
     foreach ($this->limits as $limit) {
         $option = new HTMLTags_Option($limit);
         $option->set_attribute_str('value', $limit);
         $select->add_option($option);
     }
     $select->set_value($this->current_limit);
     $this->append_tag_to_content($select);
     foreach ($this->get_hidden_inputs() as $h_i) {
         $this->append_tag_to_content($h_i);
     }
     $submit = new HTMLTags_Input();
     $submit->set_attribute_str('type', 'submit');
     $submit->set_attribute_str('value', 'Go');
     $this->append_tag_to_content($submit);
     #$content->append_tag($p);
 }
 public function __construct($name, $method = 'POST')
 {
     parent::__construct('form', null);
     $this->set_attribute_str('name', $name);
     $this->set_attribute_str('method', $method);
     $this->set_attribute_str('class', 'basic-form');
     $this->set_attribute_str('id', 'basic-form');
     $this->input_lis = array();
 }
 public function __construct($content = NULL)
 {
     parent::__construct($content);
     $this->inputs = array();
     $this->hidden_inputs = array();
 }