Ejemplo n.º 1
0
Archivo: qbURL.php Proyecto: scy/qb
 /**
  * Set the handler's URL path.
  *
  * Automatically adds a leading slash and removes trailing ones.
  */
 public static function setHandler($path)
 {
     // If set to false or null, use auto-detection.
     if ($path === false || $path === null) {
         self::$handler = null;
         return self::getHandler();
     }
     assert(is_string($path));
     return self::$handler = '/' . trim($path, '/');
 }