static public function getRemoteClass($localClass) {

            $remoteClass = false;
            $cb = false;
            $remoteClass = array_search($localClass,self::$maps);
            if (!$remoteClass && is_callable(self::$onGetRemoteClass)) {
                $cb = true;
                $remoteClass = call_user_func(self::$onGetRemoteClass,$localClass);
            }
            if (!$remoteClass) return false;
            if (!is_string($remoteClass) && $cb) {
                throw new Exception('Classname received from onGetRemoteClass should be a string or return false. ' . gettype($remoteClass) . ' was returned');
            }
            return $remoteClass; 

        }
static public function getRemoteClass($localClass) {

            $remoteClass = false;
            $cb = false;
            $remoteClass = array_search($localClass,self::$maps);
            if (!$remoteClass && is_callable(self::$onGetRemoteClass)) {
                $cb = true;
                $remoteClass = call_user_func(self::$onGetRemoteClass,$localClass);
            }
            if (!$remoteClass) return false;
            if (!is_string($remoteClass) && $cb) {
                throw new Exception('Classname received from onGetRemoteClass should be a string or return false. ' . gettype($remoteClass) . ' was returned');
            }
            return $remoteClass; 

        }
static public function getRemoteClass ( $ localClass ) { $ remoteClass = false ; $ cb = false ; $ remoteClass = array_search ( $ localClass , self :: $ maps ) ; if ( ! $ remoteClass && is_callable ( self :: $ onGetRemoteClass ) ) { $ cb = true ; $ remoteClass = call_user_func ( self :: $ onGetRemoteClass , $ localClass ) ; } if ( ! $ remoteClass ) return false ; if ( ! is_string ( $ remoteClass ) && $ cb ) { throw new Exception ( 'Classname received from onGetRemoteClass should be a string or return false. ' . gettype ( $ remoteClass ) . ' was returned' ) ; } return $ remoteClass ; }
Get the remote classname for a local class

This method will return FALSE when the class is not found

@param string $localClass
@return mixed
Get the remote classname for a local class