public function getElementInstance($type)
	{
		$class = $this->elementNamespace . ucfirst($type);

		if (array_key_exists($type, $this->customTypes))
		{
			$class = $this->customTypes[$type];
		}

		// TODO: Throw exception if the class cannot be found
		return new $class;
	}
public function getElementInstance($type)
	{
		$class = $this->elementNamespace . ucfirst($type);

		if (array_key_exists($type, $this->customTypes))
		{
			$class = $this->customTypes[$type];
		}

		// TODO: Throw exception if the class cannot be found
		return new $class;
	}
public function getElementInstance ( $ type ) { $ class = $ this -> elementNamespace . ucfirst ( $ type ) ; if ( array_key_exists ( $ type , $ this -> customTypes ) ) { $ class = $ this -> customTypes [ $ type ] ; } // TODO: Throw exception if the class cannot be found return new $ class ; }
Gets a new instance of the given input type

@param string $type

@return InputElement

@since 2.0
Gets a new instance of the given input type