src/UI/HTML/Tree/ArrayView.php
public static function buildJavaScript( $selector, $cookieId = NULL, $animated = "fast", $unique = FALSE, $collapsed = FALSE )
	{
		$options	= array();
		if( $cookieId )
		{
			$options['persist']		= "cookie";
			$options['cookieId']	= $cookieId;
		}
		else
			$options['persist']		= "location";
		if( $animated )
			$options['animated']	= strtolower( (string) $animated );
		if( $unique )
			$options['unique']		= "true";
		if( $collapsed )
			$options['collapsed']	= "true";
		
		return UI_HTML_JQuery::buildPluginCall( "treeview", $selector, $options );
	}
public static function buildJavaScript( $selector, $cookieId = NULL, $animated = "fast", $unique = FALSE, $collapsed = FALSE )
	{
		$options	= array();
		if( $cookieId )
		{
			$options['persist']		= "cookie";
			$options['cookieId']	= $cookieId;
		}
		else
			$options['persist']		= "location";
		if( $animated )
			$options['animated']	= strtolower( (string) $animated );
		if( $unique )
			$options['unique']		= "true";
		if( $collapsed )
			$options['collapsed']	= "true";
		
		return UI_HTML_JQuery::buildPluginCall( "treeview", $selector, $options );
	}
public static function buildJavaScript ( $ selector , $ cookieId = NULL , $ animated = "fast" , $ unique = FALSE , $ collapsed = FALSE ) { $ options = array ( ) ; if ( $ cookieId ) { $ options [ 'persist' ] = "cookie" ; $ options [ 'cookieId' ] = $ cookieId ; } else $ options [ 'persist' ] = "location" ; if ( $ animated ) $ options [ 'animated' ] = strtolower ( ( string ) $ animated ) ; if ( $ unique ) $ options [ 'unique' ] = "true" ; if ( $ collapsed ) $ options [ 'collapsed' ] = "true" ; return UI_HTML_JQuery :: buildPluginCall ( "treeview" , $ selector , $ options ) ; }
Builds JavaScript to call Plugin.
@access		public
@static
@param		string		$selector			JQuery Selector of Tree
@param		string		$cookieId			Store Tree in Cookie
@param		string		$animated			Speed of Animation (fast|slow)
@param		bool		$unique				Flag: open only 1 Node in every Level
@param		bool		$collapsed			Flag: start with collapsed Nodes
@return		string
Builds JavaScript to call Plugin .