Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: pap_url.class.php,v 1.2 2005-04-18 16:40:50 jpm Exp $
|
24 |
// CVS : $Id: pap_url.class.php,v 1.3 2006-03-02 10:49:49 ddelon Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Classe de gestion des url de Papyrus
|
26 |
* Classe de gestion des url de Papyrus
|
27 |
*
|
27 |
*
|
28 |
* Permet de gérer la réecriture des url.
|
28 |
* Permet de gérer la réecriture des url.
|
29 |
*
|
29 |
*
|
Line 32... |
Line 32... |
32 |
//Auteur original :
|
32 |
//Auteur original :
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
34 |
//Autres auteurs :
|
34 |
//Autres auteurs :
|
35 |
*@author Aucun
|
35 |
*@author Aucun
|
36 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@version $Revision: 1.2 $ $Date: 2005-04-18 16:40:50 $
|
37 |
*@version $Revision: 1.3 $ $Date: 2006-03-02 10:49:49 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
Line 180... |
Line 180... |
180 |
* @return string l'url complète.
|
180 |
* @return string l'url complète.
|
181 |
* @access public
|
181 |
* @access public
|
182 |
*/
|
182 |
*/
|
183 |
function getURL()
|
183 |
function getURL()
|
184 |
{
|
184 |
{
|
- |
|
185 |
|
- |
|
186 |
|
- |
|
187 |
// identifiant de la langue choisie
|
- |
|
188 |
if ( (isset($GLOBALS['_GEN_commun']['i18n'])) && (!empty($GLOBALS['_GEN_commun']['i18n'])) ) {
|
- |
|
189 |
if ($GLOBALS['_GEN_commun']['i18n']!=GEN_I18N_ID_DEFAUT) {
|
- |
|
190 |
$this->addQueryString(GEN_URL_CLE_I18N, $GLOBALS['_GEN_commun']['i18n']);
|
- |
|
191 |
}
|
- |
|
192 |
}
|
- |
|
193 |
|
185 |
// Nous regardons si un id de menu existe
|
194 |
// Nous regardons si un id de menu existe
|
186 |
if ($this->getId() != '') {
|
195 |
if ($this->getId() != '') {
|
187 |
// Préparation des noms des champs des codes pour le site et le menu
|
196 |
// Préparation des noms des champs des codes pour le site et le menu
|
188 |
$champs_code_site = (GEN_URL_ID_TYPE_SITE == 'int') ? 'gs_code_num' : 'gs_code_alpha';
|
197 |
$champs_code_site = (GEN_URL_ID_TYPE_SITE == 'int') ? 'gs_code_num' : 'gs_code_alpha';
|
189 |
$champs_code_menu = (GEN_URL_ID_TYPE_MENU == 'int') ? 'gm_code_num' : 'gm_code_alpha';
|
198 |
$champs_code_menu = (GEN_URL_ID_TYPE_MENU == 'int') ? 'gm_code_num' : 'gm_code_alpha';
|
Line 222... |
Line 231... |
222 |
}
|
231 |
}
|
223 |
$this->addQueryString(GEN_URL_CLE_MENU, $ligne[$champs_code_menu]);
|
232 |
$this->addQueryString(GEN_URL_CLE_MENU, $ligne[$champs_code_menu]);
|
224 |
$this->setCodeAlpha($ligne['gm_code_alpha']);
|
233 |
$this->setCodeAlpha($ligne['gm_code_alpha']);
|
225 |
$this->setCodeNum($ligne['gm_code_num']);
|
234 |
$this->setCodeNum($ligne['gm_code_num']);
|
Line 226... |
Line -... |
226 |
|
- |
|
227 |
if ( (isset($GLOBALS['_GEN_commun']['url_i18n'])) && (!empty($GLOBALS['_GEN_commun']['url_i18n'])) ) {
|
- |
|
228 |
$this->addQueryString(GEN_URL_CLE_I18N, $GLOBALS['_GEN_commun']['url_i18n']);
|
- |
|
229 |
}
|
- |
|
230 |
|
235 |
|
231 |
if ( (isset($GLOBALS['_GEN_commun']['url_date'])) && (!empty($GLOBALS['_GEN_commun']['url_date'])) ) {
|
236 |
if ( (isset($GLOBALS['_GEN_commun']['url_date'])) && (!empty($GLOBALS['_GEN_commun']['url_date'])) ) {
|
232 |
$this->addQueryString(GEN_URL_CLE_DATE, $GLOBALS['_GEN_commun']['url_date']);
|
237 |
$this->addQueryString(GEN_URL_CLE_DATE, $GLOBALS['_GEN_commun']['url_date']);
|
Line 233... |
Line 238... |
233 |
}
|
238 |
}
|
Line 318... |
Line 323... |
318 |
|
323 |
|
319 |
|
324 |
|
320 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
325 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
326 |
*
|
- |
|
327 |
* $Log: not supported by cvs2svn $
|
- |
|
328 |
* Revision 1.2.2.1 2005/12/27 15:56:00 ddelon
|
- |
|
329 |
* Fusion Head vers multilinguisme (wikini double clic)
|
- |
|
330 |
*
|
- |
|
331 |
* Revision 1.2 2005/04/18 16:40:50 jpm
|
321 |
*
|
332 |
* Modifications pour contrôler les permaliens.
|
322 |
* $Log: not supported by cvs2svn $
|
333 |
*
|
323 |
* Revision 1.1 2005/04/14 13:56:25 jpm
|
334 |
* Revision 1.1 2005/04/14 13:56:25 jpm
|
324 |
* Ajout de la classe URL de Papyrus.
|
335 |
* Ajout de la classe URL de Papyrus.
|
325 |
*
|
336 |
*
|