This class implements the DAO design pattern for graph XML data

author bruno
package personalization
subpackage dao

 Methods

Constructor of DAOgraph Basic behaviour

__construct() 

Return a PedagogicalGraph instance corresponding to the $url

getGraph(String $url) : \PedagogicalGraph

Parameters

$url

String

URL of the XML file containing the graph

Returns

Write a PedagogicalGraph instance to the $url

saveGraph(\PedagogicalGraph $p, string $url) 

Parameters

$p

\PedagogicalGraph

the PedagogicalGraph instance to save

$url

string

URL of the XML file containing the Pedagogical Graph

 Properties

 

$graph : \SimpleXMLElement