Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F468353
Registry.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
542 B
Referenced Files
None
Subscribers
None
Registry.php
View Options
<?php
namespace
RESTful
;
class
Registry
{
protected
$_resources
=
array
();
public
function
add
(
$resource
)
{
array_push
(
$this
->
_resources
,
$resource
);
}
public
function
match
(
$uri
)
{
foreach
(
$this
->
_resources
as
$resource
)
{
$spec
=
$resource
::
getURISpec
();
$result
=
$spec
->
match
(
$uri
);
if
(
$result
==
null
)
{
continue
;
}
$result
[
'class'
]
=
$resource
;
return
$result
;
}
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 5:10 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80551
Default Alt Text
Registry.php (542 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment