示例#1
0
文件: url.php 项目: 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();
}
示例#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();
 }