Subversion Repositories Applications.framework

Rev

Rev 171 | Rev 227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 171 Rev 204
Line 12... Line 12...
12
* @author	Aurélien PERONNET <aurelien@tela-botanica.org>
12
* @author	Aurélien PERONNET <aurelien@tela-botanica.org>
13
* @author	Jean-Pascal MILCENT <jpm@tela-botanica.org>
13
* @author	Jean-Pascal MILCENT <jpm@tela-botanica.org>
14
* @copyright 2009 Tela-Botanica
14
* @copyright 2009 Tela-Botanica
15
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
15
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
16
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
16
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
17
* @version   SVN: $Id: Url.php 171 2010-03-23 11:23:38Z jpm $
17
* @version   SVN: $Id: Url.php 204 2010-07-19 13:23:56Z aurelien $
18
* @link	  /doc/framework/
18
* @link	  /doc/framework/
19
*
19
*
20
*/
20
*/
21
class Url
21
class Url
22
{
22
{
Line 473... Line 473...
473
	 * @return  string
473
	 * @return  string
474
	 */
474
	 */
475
	public function getURL() {
475
	public function getURL() {
476
		// Voir RFC 3986, section 5.3
476
		// Voir RFC 3986, section 5.3
477
		$url = "";
477
		$url = "";
478
 
478
		
479
		if ($this->schema !== false) {
479
		if ($this->schema !== false) {
480
			$url .= $this->schema . ':';
480
			$url .= $this->schema . ':';
481
		}
481
		}
Line 482... Line 482...
482
 
482
 
Line 765... Line 765...
765
		return isset($this->options[$nomOption])
765
		return isset($this->options[$nomOption])
766
			? $this->options[$nomOption] : false;
766
			? $this->options[$nomOption] : false;
767
	}
767
	}
Line 768... Line 768...
768
 
768
 
-
 
769
	public function __toString() {
769
	public function __toString() {
770
		
770
		return $this->getURL();
771
		return $this->getURL();
771
	}
772
	}