src-dev/Mouf/Controllers/MoufController.php
private function getAnonymousInstanceName($instanceName) {
        // Let's find a name for this anonymous instance
        $anonInstanceName = $instanceName;
        // Let's find where the anonymous instance is used.
        do {
            $parents = $this->moufManager->getOwnerComponents($anonInstanceName);
            // There should be only one parent, since this is an anonymous instance
            $anonInstanceName = current($parents);
        } while ($this->moufManager->getInstanceDescriptor($anonInstanceName)->isAnonymous());

        return "Anonymous (parent: ".$anonInstanceName.")";
    }
private function getAnonymousInstanceName($instanceName) {
        // Let's find a name for this anonymous instance
        $anonInstanceName = $instanceName;
        // Let's find where the anonymous instance is used.
        do {
            $parents = $this->moufManager->getOwnerComponents($anonInstanceName);
            // There should be only one parent, since this is an anonymous instance
            $anonInstanceName = current($parents);
        } while ($this->moufManager->getInstanceDescriptor($anonInstanceName)->isAnonymous());

        return "Anonymous (parent: ".$anonInstanceName.")";
    }
private function getAnonymousInstanceName ( $ instanceName ) { // Let's find a name for this anonymous instance $ anonInstanceName = $ instanceName ; // Let's find where the anonymous instance is used. do { $ parents = $ this -> moufManager -> getOwnerComponents ( $ anonInstanceName ) ; // There should be only one parent, since this is an anonymous instance $ anonInstanceName = current ( $ parents ) ; } while ( $ this -> moufManager -> getInstanceDescriptor ( $ anonInstanceName ) -> isAnonymous ( ) ) ; return "Anonymous (parent: " . $ anonInstanceName . ")" ; }
Returns a printable name for this anonymous instance.

@param string $instanceName
@return string
Returns a printable name for this anonymous instance .