src/Mouf/MoufManager.php
public function getOwnerComponents($instanceName) {
		$instancesList = array();

		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['fieldBinds'])) {
				foreach ($instanceDesc['fieldBinds'] as $declaredBindProperty) {
					if (is_array($declaredBindProperty)) {
						if (array_search($instanceName, $declaredBindProperty) !== false) {
							$instancesList[$scannedInstance] = $scannedInstance;
							break;
						}
					} elseif ($declaredBindProperty == $instanceName) {
						$instancesList[$scannedInstance] = $scannedInstance;
					}
				}
			}
		}

		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['setterBinds'])) {
				foreach ($instanceDesc['setterBinds'] as $declaredBindProperty) {
					if (is_array($declaredBindProperty)) {
						if (array_search($instanceName, $declaredBindProperty) !== false) {
							$instancesList[$scannedInstance] = $scannedInstance;
							break;
						}
					} elseif ($declaredBindProperty == $instanceName) {
						$instancesList[$scannedInstance] = $scannedInstance;
					}
				}
			}
		}
		
		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['constructor'])) {
				foreach ($instanceDesc['constructor'] as $declaredConstructorProperty) {
					if ($declaredConstructorProperty['parametertype']=='object') {
						$value = $declaredConstructorProperty['value'];
						if (is_array($value)) {
							if (array_search($instanceName, $value) !== false) {
								$instancesList[$scannedInstance] = $scannedInstance;
								break;
							}
						} elseif ($value == $instanceName) {
							$instancesList[$scannedInstance] = $scannedInstance;
						}
					}
				}
			}
		}

		return $instancesList;

	}
public function getOwnerComponents($instanceName) {
		$instancesList = array();

		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['fieldBinds'])) {
				foreach ($instanceDesc['fieldBinds'] as $declaredBindProperty) {
					if (is_array($declaredBindProperty)) {
						if (array_search($instanceName, $declaredBindProperty) !== false) {
							$instancesList[$scannedInstance] = $scannedInstance;
							break;
						}
					} elseif ($declaredBindProperty == $instanceName) {
						$instancesList[$scannedInstance] = $scannedInstance;
					}
				}
			}
		}

		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['setterBinds'])) {
				foreach ($instanceDesc['setterBinds'] as $declaredBindProperty) {
					if (is_array($declaredBindProperty)) {
						if (array_search($instanceName, $declaredBindProperty) !== false) {
							$instancesList[$scannedInstance] = $scannedInstance;
							break;
						}
					} elseif ($declaredBindProperty == $instanceName) {
						$instancesList[$scannedInstance] = $scannedInstance;
					}
				}
			}
		}
		
		foreach ($this->declaredInstances as $scannedInstance=>$instanceDesc) {
			if (isset($instanceDesc['constructor'])) {
				foreach ($instanceDesc['constructor'] as $declaredConstructorProperty) {
					if ($declaredConstructorProperty['parametertype']=='object') {
						$value = $declaredConstructorProperty['value'];
						if (is_array($value)) {
							if (array_search($instanceName, $value) !== false) {
								$instancesList[$scannedInstance] = $scannedInstance;
								break;
							}
						} elseif ($value == $instanceName) {
							$instancesList[$scannedInstance] = $scannedInstance;
						}
					}
				}
			}
		}

		return $instancesList;

	}
public function getOwnerComponents ( $ instanceName ) { $ instancesList = array ( ) ; foreach ( $ this -> declaredInstances as $ scannedInstance => $ instanceDesc ) { if ( isset ( $ instanceDesc [ 'fieldBinds' ] ) ) { foreach ( $ instanceDesc [ 'fieldBinds' ] as $ declaredBindProperty ) { if ( is_array ( $ declaredBindProperty ) ) { if ( array_search ( $ instanceName , $ declaredBindProperty ) !== false ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; break ; } } elseif ( $ declaredBindProperty == $ instanceName ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; } } } } foreach ( $ this -> declaredInstances as $ scannedInstance => $ instanceDesc ) { if ( isset ( $ instanceDesc [ 'setterBinds' ] ) ) { foreach ( $ instanceDesc [ 'setterBinds' ] as $ declaredBindProperty ) { if ( is_array ( $ declaredBindProperty ) ) { if ( array_search ( $ instanceName , $ declaredBindProperty ) !== false ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; break ; } } elseif ( $ declaredBindProperty == $ instanceName ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; } } } } foreach ( $ this -> declaredInstances as $ scannedInstance => $ instanceDesc ) { if ( isset ( $ instanceDesc [ 'constructor' ] ) ) { foreach ( $ instanceDesc [ 'constructor' ] as $ declaredConstructorProperty ) { if ( $ declaredConstructorProperty [ 'parametertype' ] == 'object' ) { $ value = $ declaredConstructorProperty [ 'value' ] ; if ( is_array ( $ value ) ) { if ( array_search ( $ instanceName , $ value ) !== false ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; break ; } } elseif ( $ value == $ instanceName ) { $ instancesList [ $ scannedInstance ] = $ scannedInstance ; } } } } } return $ instancesList ; }
Returns the list of instances that are pointing to this instance through one of their properties.

@param string $instanceName
@return array<string, string> The instances pointing to the passed instance are returned in key and in the value
Returns the list of instances that are pointing to this instance through one of their properties .