public static function getEntityIdentifier($identifier)
    {
        $identifier = AnService::getIdentifier($identifier);

        if (!$identifier->basepath) {
            $adapters = AnService::get('anahita:loader')->getAdapters();
            $basepath = pick($adapters[$identifier->type]->getBasePath(), ANPATH_BASE);
            $applications = array_flip(AnServiceIdentifier::getApplications());

            if (isset($applications[$basepath])) {
                $identifier->application = $applications[$basepath];
                $identifier->basepath = $basepath;
            }
        }

        return $identifier;
    }
public static function getEntityIdentifier($identifier)
    {
        $identifier = AnService::getIdentifier($identifier);

        if (!$identifier->basepath) {
            $adapters = AnService::get('anahita:loader')->getAdapters();
            $basepath = pick($adapters[$identifier->type]->getBasePath(), ANPATH_BASE);
            $applications = array_flip(AnServiceIdentifier::getApplications());

            if (isset($applications[$basepath])) {
                $identifier->application = $applications[$basepath];
                $identifier->basepath = $basepath;
            }
        }

        return $identifier;
    }
public static function getEntityIdentifier ( $ identifier ) { $ identifier = AnService :: getIdentifier ( $ identifier ) ; if ( ! $ identifier -> basepath ) { $ adapters = AnService :: get ( 'anahita:loader' ) -> getAdapters ( ) ; $ basepath = pick ( $ adapters [ $ identifier -> type ] -> getBasePath ( ) , ANPATH_BASE ) ; $ applications = array_flip ( AnServiceIdentifier :: getApplications ( ) ) ; if ( isset ( $ applications [ $ basepath ] ) ) { $ identifier -> application = $ applications [ $ basepath ] ; $ identifier -> basepath = $ basepath ; } } return $ identifier ; }
Entity Identifers must have application in their path. This method set the
application of an identifier if the path is missing.

@param string $identifier Entity Identifier

@return AnServiceIdentifier
Entity Identifers must have application in their path . This method set the application of an identifier if the path is missing .