public function getParam(&$node, $control_name = 'params', $group = '_default')
	{
		// Get the type of the parameter.
		$type = (string) $node['type'];

		$element = $this->loadElement($type);

		// Check for an error.
		if ($element === false)
		{
			$result = array();
			$result[0] = (string) $node['name'];
			$result[1] = \App::get('language')->txt('Element not defined for type') . ' = ' . $type;
			$result[5] = $result[0];
			return $result;
		}

		// Get value.
		$value = $this->get((string) $node['name'], (string) $node['default'], $group);

		return $element->render($node, $value, $control_name);
	}
public function getParam(&$node, $control_name = 'params', $group = '_default')
	{
		// Get the type of the parameter.
		$type = (string) $node['type'];

		$element = $this->loadElement($type);

		// Check for an error.
		if ($element === false)
		{
			$result = array();
			$result[0] = (string) $node['name'];
			$result[1] = \App::get('language')->txt('Element not defined for type') . ' = ' . $type;
			$result[5] = $result[0];
			return $result;
		}

		// Get value.
		$value = $this->get((string) $node['name'], (string) $node['default'], $group);

		return $element->render($node, $value, $control_name);
	}
public function getParam ( & $ node , $ control_name = 'params' , $ group = '_default' ) { // Get the type of the parameter. $ type = ( string ) $ node [ 'type' ] ; $ element = $ this -> loadElement ( $ type ) ; // Check for an error. if ( $ element === false ) { $ result = array ( ) ; $ result [ 0 ] = ( string ) $ node [ 'name' ] ; $ result [ 1 ] = \ App :: get ( 'language' ) -> txt ( 'Element not defined for type' ) . ' = ' . $ type ; $ result [ 5 ] = $ result [ 0 ] ; return $ result ; } // Get value. $ value = $ this -> get ( ( string ) $ node [ 'name' ] , ( string ) $ node [ 'default' ] , $ group ) ; return $ element -> render ( $ node , $ value , $ control_name ) ; }
Render a parameter type.

@param   object  &$node         A parameter XML element.
@param   string  $control_name  An optional name of the HTML form control. The default is 'params' if not supplied.
@param   string  $group         An optional group to render.  The default group is used if not supplied.
@return  array   Any array of the label, the form element and the tooltip.
Render a parameter type .