src/bundles/UI/Form.php
public static function make_label( $id, $key, $text = null, $attr = array() ) 
	{
		if ( is_null( $text ) )
		{
			$text = $key;
		}

		$element = HTML::tag( 'label', $text, array_merge( array( 
			'id' => $id, 
			'for' => static::build_id( 'input', $key ) 
		), $attr ));

		if ( !static::$builder_enabled )
		{
			 return $element;
		}

		return Builder::handle( 'form_label', $element );
	}
public static function make_label( $id, $key, $text = null, $attr = array() ) 
	{
		if ( is_null( $text ) )
		{
			$text = $key;
		}

		$element = HTML::tag( 'label', $text, array_merge( array( 
			'id' => $id, 
			'for' => static::build_id( 'input', $key ) 
		), $attr ));

		if ( !static::$builder_enabled )
		{
			 return $element;
		}

		return Builder::handle( 'form_label', $element );
	}
public static function make_label ( $ id , $ key , $ text = null , $ attr = array ( ) ) { if ( is_null ( $ text ) ) { $ text = $ key ; } $ element = HTML :: tag ( 'label' , $ text , array_merge ( array ( 'id' => $ id , 'for' => static :: build_id ( 'input' , $ key ) ) , $ attr ) ) ; if ( ! static :: $ builder_enabled ) { return $ element ; } return Builder :: handle ( 'form_label' , $ element ) ; }
make a label

@param string		$id			The id that has been generated for us.
@param string 	$key			This is the name
@param string		$text
@param array 		$attr
make a label