[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class CelerityResourceGraph extends AbstractDirectedGraph { 4 5 private $resourceGraph = array(); 6 private $graphSet = false; 7 8 protected function loadEdges(array $nodes) { 9 if (!$this->graphSet) { 10 throw new Exception( 11 'Call setResourceGraph before loading the graph!' 12 ); 13 } 14 15 $graph = $this->getResourceGraph(); 16 $edges = array(); 17 foreach ($nodes as $node) { 18 $edges[$node] = idx($graph, $node, array()); 19 } 20 return $edges; 21 } 22 23 final public function setResourceGraph(array $graph) { 24 $this->resourceGraph = $graph; 25 $this->graphSet = true; 26 return $this; 27 } 28 29 private function getResourceGraph() { 30 return $this->resourceGraph; 31 } 32 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |