| 1 |
require_once 'Zend/Uri/Http.php'; |
| 2 |
|
| 3 |
namespace Location\Web; |
| 4 |
|
| 5 |
interface Factory |
| 6 |
{ |
| 7 |
static function _factory(); |
| 8 |
} |
| 9 |
|
| 10 |
abstract class URI extends BaseURI implements Factory |
| 11 |
{ |
| 12 |
abstract function test(); |
| 13 |
|
| 14 |
public static $st1 = 1; |
| 15 |
const ME = "Yo"; |
| 16 |
var $list = NULL; |
| 17 |
private $var; |
| 18 |
|
| 19 |
/** |
| 20 |
* Returns a URI |
| 21 |
* |
| 22 |
* @return URI |
| 23 |
*/ |
| 24 |
static public function _factory($stats = array(), $uri = 'http') |
| 25 |
{ |
| 26 |
echo __METHOD__; |
| 27 |
$uri = explode(':', $uri, 0b10); |
| 28 |
$schemeSpecific = isset($uri[1]) ? $uri[1] : ''; |
| 29 |
$desc = 'Multi |
| 30 |
line description'; |
| 31 |
|
| 32 |
// Security check |
| 33 |
if (!ctype_alnum($scheme)) { |
| 34 |
throw new Zend_Uri_Exception('Illegal scheme'); |
| 35 |
} |
| 36 |
|
| 37 |
$this->var = 0 - self::$st; |
| 38 |
$this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class)); |
| 39 |
|
| 40 |
return [ |
| 41 |
'uri' => $uri, |
| 42 |
'value' => null, |
| 43 |
]; |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
echo URI::ME . URI::$st1; |
| 48 |
|
| 49 |
__halt_compiler () ; datahere |
| 50 |
datahere |
| 51 |
datahere */ |
| 52 |
datahere |