Ajax/semantic/html/collections/form/HtmlForm.php
public function addFields($fields=NULL, $label=NULL) {
		if (isset($fields)) {
			if (!$fields instanceof HtmlFormFields) {
				if (!\is_array($fields)) {
					$fields=\func_get_args();
					$end=\end($fields);
					if (\is_string($end)) {
						$label=$end;
						\array_pop($fields);
					} else
						$label=NULL;
				}
				$this->_fields=\array_merge($this->_fields, $fields);
				$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count(), $fields);
			}
			if (isset($label)){
				$fields->wrap("<div class='field'><label>{$label}</label>","</div>");
			}
		} else {
			$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count());
		}
		$this->addItem($fields);
		return $fields;
	}
public function addFields($fields=NULL, $label=NULL) {
		if (isset($fields)) {
			if (!$fields instanceof HtmlFormFields) {
				if (!\is_array($fields)) {
					$fields=\func_get_args();
					$end=\end($fields);
					if (\is_string($end)) {
						$label=$end;
						\array_pop($fields);
					} else
						$label=NULL;
				}
				$this->_fields=\array_merge($this->_fields, $fields);
				$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count(), $fields);
			}
			if (isset($label)){
				$fields->wrap("<div class='field'><label>{$label}</label>","</div>");
			}
		} else {
			$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count());
		}
		$this->addItem($fields);
		return $fields;
	}
public function addFields ( $ fields = NULL , $ label = NULL ) { if ( isset ( $ fields ) ) { if ( ! $ fields instanceof HtmlFormFields ) { if ( ! \ is_array ( $ fields ) ) { $ fields = \ func_get_args ( ) ; $ end = \ end ( $ fields ) ; if ( \ is_string ( $ end ) ) { $ label = $ end ; \ array_pop ( $ fields ) ; } else $ label = NULL ; } $ this -> _fields = \ array_merge ( $ this -> _fields , $ fields ) ; $ fields = new HtmlFormFields ( "fields-" . $ this -> identifier . "-" . $ this -> count ( ) , $ fields ) ; } if ( isset ( $ label ) ) { $ fields -> wrap ( "<div class='field'><label>{$label}</label>" , "</div>" ) ; } } else { $ fields = new HtmlFormFields ( "fields-" . $ this -> identifier . "-" . $ this -> count ( ) ) ; } $ this -> addItem ( $ fields ) ; return $ fields ; }
Adds a group of fields
@param array $fields
@param string $label
@return HtmlFormFields
Adds a group of fields