src/bundles/UI/Form.php
public static function make_checkbox( $id, $key, $text = '', $active = false, $attr = array() ) 
	{
		$element = HTML::tag( 'input', array_merge( array( 
			'id' => $id,
			'name' => $key, 
			'type' => 'checkbox' 
		), $attr ));

		$element->checked( (bool) $active );

		$element = HTML::tag( 'label', $element->render().' '.$text );

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

		return Builder::handle( 'form_checkbox', $element );
	}
public static function make_checkbox( $id, $key, $text = '', $active = false, $attr = array() ) 
	{
		$element = HTML::tag( 'input', array_merge( array( 
			'id' => $id,
			'name' => $key, 
			'type' => 'checkbox' 
		), $attr ));

		$element->checked( (bool) $active );

		$element = HTML::tag( 'label', $element->render().' '.$text );

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

		return Builder::handle( 'form_checkbox', $element );
	}
public static function make_checkbox ( $ id , $ key , $ text = '' , $ active = false , $ attr = array ( ) ) { $ element = HTML :: tag ( 'input' , array_merge ( array ( 'id' => $ id , 'name' => $ key , 'type' => 'checkbox' ) , $ attr ) ) ; $ element -> checked ( ( bool ) $ active ) ; $ element = HTML :: tag ( 'label' , $ element -> render ( ) . ' ' . $ text ) ; if ( ! static :: $ builder_enabled ) { return $ element ; } return Builder :: handle ( 'form_checkbox' , $ element ) ; }
make a checkbox

@param string		$id			The id that has been generated for us.
@param string 	$key			This is the name
@param string		$text
@param bool		$active		Is the checkbox cheked
@param array 		$attr
@return string
make a checkbox