public function getElementsByName($name) {

		if(isset($this->elements[$name])) {
			return $this->elements[$name];
		}
		
		throw new \InvalidArgumentException(sprintf("Unknown form element '%s'", $name));

	}
public function getElementsByName($name) {

		if(isset($this->elements[$name])) {
			return $this->elements[$name];
		}
		
		throw new \InvalidArgumentException(sprintf("Unknown form element '%s'", $name));

	}
public function getElementsByName ( $ name ) { if ( isset ( $ this -> elements [ $ name ] ) ) { return $ this -> elements [ $ name ] ; } throw new \ InvalidArgumentException ( sprintf ( "Unknown form element '%s'" , $ name ) ) ; }
get one or more elements by name

@param string $name of element or elements
@return FormElement|array
@throws \InvalidArgumentException
get one or more elements by name