src-dev/Mouf/Controllers/MoufDisplayGraphController.php
private function getJitJsonNode($instanceName) {
		$node = array();
		
		$node["id"] = $instanceName;
		$node["name"] = $instanceName;
		// We can set some data (dimension, other keys...) but we will keep tht to 0 for now.
		
		$adjacencies = array();
						
		$componentsList = $this->getComponentsListBoundToInstance($instanceName);
		
		foreach ($componentsList as $component) {
			$adjacency = array();
			$adjacency['nodeTo'] = $component;
			// We can set some data (weight...) but we will keep tht to 0 for now.
			
			$data = array();
			$data['$type'] = "arrow";
			$data['$direction'] = array($instanceName, $component);
			
			/*            "data": {
                "$type":"arrow",
                "$direction": ["node4", "node3"],
                "$dim":25,
                "$color":"#dd99dd",
                "weight": 1
			
            }*/
			$adjacency['data'] = $data;
			
			$adjacencies[] = $adjacency;
		}
		
		$node["adjacencies"] = $adjacencies;
		
		return $node;        
	}
private function getJitJsonNode($instanceName) {
		$node = array();
		
		$node["id"] = $instanceName;
		$node["name"] = $instanceName;
		// We can set some data (dimension, other keys...) but we will keep tht to 0 for now.
		
		$adjacencies = array();
						
		$componentsList = $this->getComponentsListBoundToInstance($instanceName);
		
		foreach ($componentsList as $component) {
			$adjacency = array();
			$adjacency['nodeTo'] = $component;
			// We can set some data (weight...) but we will keep tht to 0 for now.
			
			$data = array();
			$data['$type'] = "arrow";
			$data['$direction'] = array($instanceName, $component);
			
			/*            "data": {
                "$type":"arrow",
                "$direction": ["node4", "node3"],
                "$dim":25,
                "$color":"#dd99dd",
                "weight": 1
			
            }*/
			$adjacency['data'] = $data;
			
			$adjacencies[] = $adjacency;
		}
		
		$node["adjacencies"] = $adjacencies;
		
		return $node;        
	}
private function getJitJsonNode ( $ instanceName ) { $ node = array ( ) ; $ node [ "id" ] = $ instanceName ; $ node [ "name" ] = $ instanceName ; // We can set some data (dimension, other keys...) but we will keep tht to 0 for now. $ adjacencies = array ( ) ; $ componentsList = $ this -> getComponentsListBoundToInstance ( $ instanceName ) ; foreach ( $ componentsList as $ component ) { $ adjacency = array ( ) ; $ adjacency [ 'nodeTo' ] = $ component ; // We can set some data (weight...) but we will keep tht to 0 for now. $ data = array ( ) ; $ data [ '$type' ] = "arrow" ; $ data [ '$direction' ] = array ( $ instanceName , $ component ) ; /*            "data": {
                "$type":"arrow",
                "$direction": ["node4", "node3"],
                "$dim":25,
                "$color":"#dd99dd",
                "weight": 1
			
            }*/ $ adjacency [ 'data' ] = $ data ; $ adjacencies [ ] = $ adjacency ; } $ node [ "adjacencies" ] = $ adjacencies ; return $ node ; }
Returns a PHP array representing a node that will be used by JIT to build a visual representation.
Returns a PHP array representing a node that will be used by JIT to build a visual representation .