Exemple #1
0
 /**
  * Cleans the URL
  *
  * Thanks to "THE PERFECT PHP CLEAN URL GENERATOR"(http://cubiq.org/the-perfect-php-clean-url-generator)
  *
  * This function will clean the URL by removing any unwanted characters from it and
  * only allowing alphanumeric and - in the URL.
  * This function can be customized according to your needs.
  *
  * @param string $string The URL String
  * @access private
  */
 private function cleanURL($string, $delimiter = "-")
 {
     /** Alias of Static Function of PermalinksDisplay */
     $string = PermalinksDisplay::cleanURL($string, $delimiter);
     return $string;
 }
Exemple #2
0
 private function cleanURL($string, $delimiter = "-")
 {
     /* Alias of Static Function of PermalinksDisplay */
     require_once dirname(__FILE__) . "/PermalinksDisplay.class.php";
     $string = PermalinksDisplay::cleanURL($string, $delimiter);
     return $string;
 }