# SimpleApplicationUrl.class.php

Go to the documentation of this file.

    00001 <?php
    00002     final class SimpleApplicationUrl extends ApplicationUrl
    00003     {
    00007         public static function create()
    00008         {
    00009             return new self;
    00010         }
    00011
    00015         public function setPathByRequestUri($requestUri, $normalize = true)
    00016         {
    00017             throw new UnimplementedFeatureException(__CLASS__.'::setPathByRequestUri');
    00018         }
    00019
    00020         public function href($url, $absolute = null)
    00021         {
    00022             if ($absolute === null)
    00023                 $absolute = $this->absolute;
    00024
    00025             $baseUrl = $this->base->getPath().$url;
    00026
    00027             if ($this->applicationScope)
    00028                 $baseUrl .=
    00029                     $this->getArgSeparator()
    00030                     .$this->buildQuery($this->applicationScope);
    00031
    00032             if ($absolute)
    00033                 $baseUrl =
    00034                     'http:'.$this->base->getSchemeSpecificPart()
    00035                     .ltrim($baseUrl, '/');
    00036
    00037
    00038             return rtrim($baseUrl, '?');
    00039         }
    00040     }
    00041 ?>