45 'allow_unwise' =>
false 58 }
catch (Exception $e) {
59 trigger_error($e->getMessage(), E_USER_WARNING);
72 public static function check($uri)
76 }
catch (Exception $e) {
99 $uri = explode(
':', $uri, 2);
100 $scheme = strtolower($uri[0]);
101 $schemeSpecific = isset($uri[1]) ===
true ? $uri[1] :
'';
103 if (strlen($scheme) === 0) {
104 #require_once 'Zend/Uri/Exception.php'; 109 if (ctype_alnum($scheme) ===
false) {
110 #require_once 'Zend/Uri/Exception.php'; 111 throw new Zend_Uri_Exception(
'Illegal scheme supplied, only alphanumeric characters are permitted');
129 #require_once 'Zend/Uri/Exception.php'; 135 #require_once 'Zend/Loader.php'; 138 }
catch (Exception $e) {
139 #require_once 'Zend/Uri/Exception.php'; 143 $schemeHandler =
new $className($scheme, $schemeSpecific);
145 if (! $schemeHandler instanceof
Zend_Uri) {
146 #require_once 'Zend/Uri/Exception.php'; 150 return $schemeHandler;
160 if (empty($this->_scheme) ===
false) {
177 throw new Zend_Uri_Exception(
"Config must be an array or an instance of Zend_Config.");
180 foreach (
$config as $k => $v) {
181 self::$_config[$k] = $v;
192 abstract protected function __construct($scheme, $schemeSpecific =
'');
199 abstract public function getUri();
206 abstract public function valid();
elseif(isset( $params[ 'redirect_parent']))
static loadClass($class, $dirs=null)
static setConfig($config)
static factory($uri='http', $className=null)
__construct($scheme, $schemeSpecific='')