protected function resolveConst($const, Page $page = null)
    {
        $value = '';
        switch (strtolower($const)) {
            case 'url':
                $value = (null !== $page) ? $page->getUrl() : '';
            default:
                break;
        }

        return $value;
    }
protected function resolveConst($const, Page $page = null)
    {
        $value = '';
        switch (strtolower($const)) {
            case 'url':
                $value = (null !== $page) ? $page->getUrl() : '';
            default:
                break;
        }

        return $value;
    }
protected function resolveConst ( $ const , Page $ page = null ) { $ value = '' ; switch ( strtolower ( $ const ) ) { case 'url' : $ value = ( null !== $ page ) ? $ page -> getUrl ( ) : '' ; default : break ; } return $ value ; }
Resolves constant value.

@param  string    $const
@param  Page|NULL $page

@return string
Resolves constant value .