Esempio n. 1
0
File: url.php Progetto: extend/wee
function test_encoded_url_to_string($sURL = null, $aData = array())
{
    $o = new weeURL($sURL);
    $o->setEncoder(new weeXHTMLEncoder());
    $o->addData($aData);
    return $o->toString();
}
Esempio n. 2
0
 /**
 	Output a correctly encoded URL.
 	Use this from the inside of the template instead of creating the object directly.
 
 	@param $sBaseURL The base of the resulting URL.
 	@param $aData The data to be appended.
 	@see weeURL
 */
 protected function url($sBaseURL = null, $aData = array())
 {
     $oURL = new weeURL($sBaseURL);
     $oURL->setEncoder($this->getEncoder());
     $oURL->addData($aData);
     echo $oURL->toString();
 }