src/UI/HTML/JQuery.php
public static function buildPluginCall( $plugin, $selector, $options = array(), $spaces = 0 )
	{
		$innerIndent	= str_repeat( " ", $spaces + 2 );
		$outerIndent	= str_repeat( " ", $spaces );
		$options		= json_encode( $options );
		$show			= $selector ? '.show()' : "";
		$selector		= $selector ? '("'.$selector.'")' : "";
		return $outerIndent.self::$jQueryFunctionName.'(document).ready(function(){
'.$innerIndent.self::$jQueryFunctionName.$selector.'.'.$plugin.'('.$options.')'.$show.';
'.$outerIndent.'});';
	}
public static function buildPluginCall( $plugin, $selector, $options = array(), $spaces = 0 )
	{
		$innerIndent	= str_repeat( " ", $spaces + 2 );
		$outerIndent	= str_repeat( " ", $spaces );
		$options		= json_encode( $options );
		$show			= $selector ? '.show()' : "";
		$selector		= $selector ? '("'.$selector.'")' : "";
		return $outerIndent.self::$jQueryFunctionName.'(document).ready(function(){
'.$innerIndent.self::$jQueryFunctionName.$selector.'.'.$plugin.'('.$options.')'.$show.';
'.$outerIndent.'});';
	}
public static function buildPluginCall ( $ plugin , $ selector , $ options = array ( ) , $ spaces = 0 ) { $ innerIndent = str_repeat ( " " , $ spaces + 2 ) ; $ outerIndent = str_repeat ( " " , $ spaces ) ; $ options = json_encode ( $ options ) ; $ show = $ selector ? '.show()' : "" ; $ selector = $ selector ? '("' . $ selector . '")' : "" ; return $ outerIndent . self :: $ jQueryFunctionName . '(document).ready(function(){
' . $ innerIndent . self :: $ jQueryFunctionName . $ selector . '.' . $ plugin . '(' . $ options . ')' . $ show . ';
' . $ outerIndent . '});' ; }
Builds and returns JavaScript Code of jQuery Plugin Call.
@access		public
@static
@param		string		$plugin			Name of Plugin Constructor Methode
@param		string		$selector		XPath Selector of HTML Tag(s) to call Plugin on
@param		array		$option			Array of Plugin Constructor Options
@param		int			$spaces			Number of indenting Whitespaces
@return		string
Builds and returns JavaScript Code of jQuery Plugin Call .