src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php
public function hasInternalAlias($publicUrl, $asObject = false, $mode = null)
    {
        $ret = null;
        if (isset($this->batch[$publicUrl])) {
            $alias = $this->batch[$publicUrl];
        } else {
            $alias = $this->repository->findOneByPublicUrl($publicUrl, $mode);
        }
        if ($alias) {
            $ret = ($asObject ? $alias : $alias->getInternalUrl());
        }

        return $ret;
    }
public function hasInternalAlias($publicUrl, $asObject = false, $mode = null)
    {
        $ret = null;
        if (isset($this->batch[$publicUrl])) {
            $alias = $this->batch[$publicUrl];
        } else {
            $alias = $this->repository->findOneByPublicUrl($publicUrl, $mode);
        }
        if ($alias) {
            $ret = ($asObject ? $alias : $alias->getInternalUrl());
        }

        return $ret;
    }
public function hasInternalAlias ( $ publicUrl , $ asObject = false , $ mode = null ) { $ ret = null ; if ( isset ( $ this -> batch [ $ publicUrl ] ) ) { $ alias = $ this -> batch [ $ publicUrl ] ; } else { $ alias = $ this -> repository -> findOneByPublicUrl ( $ publicUrl , $ mode ) ; } if ( $ alias ) { $ ret = ( $ asObject ? $ alias : $ alias -> getInternalUrl ( ) ) ; } return $ ret ; }
Checks if the passed public url is currently mapped to an internal url

@param string $publicUrl
@param bool $asObject
@param null|integer $mode
@return null|string|UrlAlias
Checks if the passed public url is currently mapped to an internal url