src-dev/Mouf/Controllers/AbstractMoufInstanceController.php
public function displayComponentParents() {
		$componentsList = $this->moufManager->getOwnerComponents($this->instanceName);
		
		$this->canBeWeak = false;
		if (!empty($componentsList)) {
			\MoufAdmin::getBlock_left()->addText("<div id='referredInstances'><b>Referred by:</b></div>");
			$this->canBeWeak = true;
			//$children = array();
			foreach ($componentsList as $component) {
				/*$child = new MenuItem($component, ROOT_URL.'ajaxinstance/?name='.urlencode($component));
				$child->setPropagatedUrlParameters(array("selfedit"));
				$children[] = $child;*/

				\MoufAdmin::getBlock_left()->addText("<script>MoufInstanceManager.getInstance('".addslashes($component)."').then(function(instance) { 
						instance.render().appendTo(jQuery('#referredInstances')).click(function() { window.location.href=MoufInstanceManager.rootUrl+'ajaxinstance/?name='+encodeURIComponent(instance.getName())+'&selfedit='+MoufInstanceManager.selfEdit; }); 
				});</script>");
				
			}
			//$referredByMenuItem = new MenuItem('Referred by instances:', null, $children);
			//\MoufAdmin::getInstanceMenu()->addChild($referredByMenuItem);
			
		}
	}
public function displayComponentParents() {
		$componentsList = $this->moufManager->getOwnerComponents($this->instanceName);
		
		$this->canBeWeak = false;
		if (!empty($componentsList)) {
			\MoufAdmin::getBlock_left()->addText("<div id='referredInstances'><b>Referred by:</b></div>");
			$this->canBeWeak = true;
			//$children = array();
			foreach ($componentsList as $component) {
				/*$child = new MenuItem($component, ROOT_URL.'ajaxinstance/?name='.urlencode($component));
				$child->setPropagatedUrlParameters(array("selfedit"));
				$children[] = $child;*/

				\MoufAdmin::getBlock_left()->addText("<script>MoufInstanceManager.getInstance('".addslashes($component)."').then(function(instance) { 
						instance.render().appendTo(jQuery('#referredInstances')).click(function() { window.location.href=MoufInstanceManager.rootUrl+'ajaxinstance/?name='+encodeURIComponent(instance.getName())+'&selfedit='+MoufInstanceManager.selfEdit; }); 
				});</script>");
				
			}
			//$referredByMenuItem = new MenuItem('Referred by instances:', null, $children);
			//\MoufAdmin::getInstanceMenu()->addChild($referredByMenuItem);
			
		}
	}
public function displayComponentParents ( ) { $ componentsList = $ this -> moufManager -> getOwnerComponents ( $ this -> instanceName ) ; $ this -> canBeWeak = false ; if ( ! empty ( $ componentsList ) ) { \ MoufAdmin :: getBlock_left ( ) -> addText ( "<div id='referredInstances'><b>Referred by:</b></div>" ) ; $ this -> canBeWeak = true ; //$children = array(); foreach ( $ componentsList as $ component ) { /*$child = new MenuItem($component, ROOT_URL.'ajaxinstance/?name='.urlencode($component));
				$child->setPropagatedUrlParameters(array("selfedit"));
				$children[] = $child;*/ \ MoufAdmin :: getBlock_left ( ) -> addText ( "<script>MoufInstanceManager.getInstance('" . addslashes ( $ component ) . "').then(function(instance) { 
						instance.render().appendTo(jQuery('#referredInstances')).click(function() { window.location.href=MoufInstanceManager.rootUrl+'ajaxinstance/?name='+encodeURIComponent(instance.getName())+'&selfedit='+MoufInstanceManager.selfEdit; }); 
				});</script>" ) ; } //$referredByMenuItem = new MenuItem('Referred by instances:', null, $children); //\MoufAdmin::getInstanceMenu()->addChild($referredByMenuItem); } }
Displays the list of components directly referencing this component.
Displays the list of components directly referencing this component .