Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18921308
CelerityResourceGraph.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
678 B
Referenced Files
None
Subscribers
None
CelerityResourceGraph.php
View Options
<?php
final
class
CelerityResourceGraph
extends
AbstractDirectedGraph
{
private
$resourceGraph
=
array
();
private
$graphSet
=
false
;
protected
function
loadEdges
(
array
$nodes
)
{
if
(!
$this
->
graphSet
)
{
throw
new
PhutilInvalidStateException
(
'setResourceGraph'
);
}
$graph
=
$this
->
getResourceGraph
();
$edges
=
array
();
foreach
(
$nodes
as
$node
)
{
$edges
[
$node
]
=
idx
(
$graph
,
$node
,
array
());
}
return
$edges
;
}
public
function
setResourceGraph
(
array
$graph
)
{
$this
->
resourceGraph
=
$graph
;
$this
->
graphSet
=
true
;
return
$this
;
}
private
function
getResourceGraph
()
{
return
$this
->
resourceGraph
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 11, 1:58 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8183837
Default Alt Text
CelerityResourceGraph.php (678 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment