14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
const ITEMS_PER_PAGE = 25;
protected $restriction_categorie = null;
protected $restriction_droit = null;
static public function transformTitleToURI($str)
{
$str = utils::transliterateToAscii($str);
$str = preg_replace('![^\w\d_-]!i', '-', $str);
$str = preg_replace('!-{2,}!', '-', $str);
$str = trim($str, '-');
return $str;
}
|
|
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
const ITEMS_PER_PAGE = 25;
protected $restriction_categorie = null;
protected $restriction_droit = null;
static public function transformTitleToURI($str)
{
$str = Utils::transliterateToAscii($str);
$str = preg_replace('![^\w\d_-]!i', '-', $str);
$str = preg_replace('!-{2,}!', '-', $str);
$str = trim($str, '-');
return $str;
}
|