Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/CelerityResourceGraph.php
Show All 12 Lines | protected function loadEdges(array $nodes) { | ||||
$graph = $this->getResourceGraph(); | $graph = $this->getResourceGraph(); | ||||
$edges = array(); | $edges = array(); | ||||
foreach ($nodes as $node) { | foreach ($nodes as $node) { | ||||
$edges[$node] = idx($graph, $node, array()); | $edges[$node] = idx($graph, $node, array()); | ||||
} | } | ||||
return $edges; | return $edges; | ||||
} | } | ||||
final public function setResourceGraph(array $graph) { | public function setResourceGraph(array $graph) { | ||||
$this->resourceGraph = $graph; | $this->resourceGraph = $graph; | ||||
$this->graphSet = true; | $this->graphSet = true; | ||||
return $this; | return $this; | ||||
} | } | ||||
private function getResourceGraph() { | private function getResourceGraph() { | ||||
return $this->resourceGraph; | return $this->resourceGraph; | ||||
} | } | ||||
} | } |