Page MenuHomestyx hydra

CelerityResourceGraph.php
No OneTemporary

CelerityResourceGraph.php

<?php
final class CelerityResourceGraph extends AbstractDirectedGraph {
private $resourceGraph = array();
private $graphSet = false;
protected function loadEdges(array $nodes) {
if (!$this->graphSet) {
throw new Exception(
'Call setResourceGraph before loading the graph!'
);
}
$graph = $this->getResourceGraph();
$edges = array();
foreach ($nodes as $node) {
$edges[$node] = idx($graph, $node, array());
}
return $edges;
}
final public function setResourceGraph(array $graph) {
$this->resourceGraph = $graph;
$this->graphSet = true;
return $this;
}
private function getResourceGraph() {
return $this->resourceGraph;
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 13, 6:42 PM (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
336476
Default Alt Text
CelerityResourceGraph.php (713 B)

Event Timeline