src/UI/HTML/Panel.php
public static function create( $id, $content, $header, $abstract = NULL, $footer = NULL, $theme= "default", $attributes = array() )
	{
		$divContInner	= self::wrap( (string) $content, self::$classContentInner );
		$divCont		= self::wrap( $divContInner, self::$classContent );
		$divAbstract	= "";
		$divHead		= "";
		$divFoot		= "";
		
		if( !is_null( $abstract ) )
		{
			$divAbstractInner	= self::wrap( $abstract, self::$classAbstractInner );
			$divAbstract		= self::wrap( $divAbstractInner, self::$classAbstract );
		}
		if( !is_null( $footer ) )
		{
			$divFootInner	= self::wrap( $footer, self::$classFooterInner );
			$divFoot		= self::wrap( $divFootInner, self::$classFooter );
		}
		if( !is_null( $header ) )
		{
			$divHeadInner	= self::wrap( $header, self::$classHeaderInner );
			$divHead		= self::wrap( $divHeadInner, self::$classHeader );
		}

		$classes		= $theme ? self::$classPanel." ".$theme : self::$classPanel;
		$attributes		= array_merge( array( "id" => $id ), $attributes );
		$divPanel		= self::wrap( $divHead.$divAbstract.$divCont.$divFoot, $classes, $attributes );
		return $divPanel;
	}
public static function create( $id, $content, $header, $abstract = NULL, $footer = NULL, $theme= "default", $attributes = array() )
	{
		$divContInner	= self::wrap( (string) $content, self::$classContentInner );
		$divCont		= self::wrap( $divContInner, self::$classContent );
		$divAbstract	= "";
		$divHead		= "";
		$divFoot		= "";
		
		if( !is_null( $abstract ) )
		{
			$divAbstractInner	= self::wrap( $abstract, self::$classAbstractInner );
			$divAbstract		= self::wrap( $divAbstractInner, self::$classAbstract );
		}
		if( !is_null( $footer ) )
		{
			$divFootInner	= self::wrap( $footer, self::$classFooterInner );
			$divFoot		= self::wrap( $divFootInner, self::$classFooter );
		}
		if( !is_null( $header ) )
		{
			$divHeadInner	= self::wrap( $header, self::$classHeaderInner );
			$divHead		= self::wrap( $divHeadInner, self::$classHeader );
		}

		$classes		= $theme ? self::$classPanel." ".$theme : self::$classPanel;
		$attributes		= array_merge( array( "id" => $id ), $attributes );
		$divPanel		= self::wrap( $divHead.$divAbstract.$divCont.$divFoot, $classes, $attributes );
		return $divPanel;
	}
public static function create ( $ id , $ content , $ header , $ abstract = NULL , $ footer = NULL , $ theme = "default" , $ attributes = array ( ) ) { $ divContInner = self :: wrap ( ( string ) $ content , self :: $ classContentInner ) ; $ divCont = self :: wrap ( $ divContInner , self :: $ classContent ) ; $ divAbstract = "" ; $ divHead = "" ; $ divFoot = "" ; if ( ! is_null ( $ abstract ) ) { $ divAbstractInner = self :: wrap ( $ abstract , self :: $ classAbstractInner ) ; $ divAbstract = self :: wrap ( $ divAbstractInner , self :: $ classAbstract ) ; } if ( ! is_null ( $ footer ) ) { $ divFootInner = self :: wrap ( $ footer , self :: $ classFooterInner ) ; $ divFoot = self :: wrap ( $ divFootInner , self :: $ classFooter ) ; } if ( ! is_null ( $ header ) ) { $ divHeadInner = self :: wrap ( $ header , self :: $ classHeaderInner ) ; $ divHead = self :: wrap ( $ divHeadInner , self :: $ classHeader ) ; } $ classes = $ theme ? self :: $ classPanel . " " . $ theme : self :: $ classPanel ; $ attributes = array_merge ( array ( "id" => $ id ) , $ attributes ) ; $ divPanel = self :: wrap ( $ divHead . $ divAbstract . $ divCont . $ divFoot , $ classes , $ attributes ) ; return $ divPanel ; }
Builds HTML Code of Panel statically.
@access		public
@static
@param		string		$id					Tag ID of Panel
@param		string		$content			Content of Panel
@param		string		$header				Content of Header
@param		string		$abstract			Content of Abstract
@param		string		$footer				Content of Footer
@param		string		$theme				Theme / additional CSS Class of Panel
@param		array		$attributes			Map of Attributes of Panel DIV
@return		string
Builds HTML Code of Panel statically .