Subversion Repositories Applications.framework

Rev

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

Rev 144 Rev 148
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 144 2010-03-02 13:01:18Z jpm $
17
* @version   SVN: $Id: Url.php 148 2010-03-03 15:18:04Z jpm $
18
* @link	  /doc/framework/
18
* @link	  /doc/framework/
19
*
19
*
20
*/
20
*/
21
class Url
21
class Url
22
{
22
{
Line 99... Line 99...
99
	 * @param string $url	 une URL relative ou absolue
99
	 * @param string $url	 une URL relative ou absolue
100
	 * @param array  $options
100
	 * @param array  $options
101
	 */
101
	 */
102
	public function __construct($url, $options = null) {
102
	public function __construct($url, $options = null) {
103
		$this->setOption(self::OPTION_SEPARATEUR_ENTREE,
103
		$this->setOption(self::OPTION_SEPARATEUR_ENTREE,
104
						 ini_get('arg_separator.input'));
104
						 Config::get('fw_url_arg_separateur_entree'));
105
		$this->setOption(self::OPTION_SEPARATEUR_SORTIE,
105
		$this->setOption(self::OPTION_SEPARATEUR_SORTIE,
106
						 ini_get('arg_separator.output'));
106
						 Config::get('fw_url_arg_separateur_sortie'));
107
		if (is_array($options)) {
107
		if (is_array($options)) {
108
			foreach ($options as $nomOption => $valeur) {
108
			foreach ($options as $nomOption => $valeur) {
109
				$this->setOption($nomOption);
109
				$this->setOption($nomOption);
110
			}
110
			}
111
		}
111
		}