This class implements the DAO design pattern for PMDLe XML data

author bruno
package personalization
subpackage dao

 Methods

Constructor of DAOpmdle Basic behaviour

__construct() 

Return a PMDLEProfile instance corresponding to the $url

getProfile($url) : \PMDLEProfile

Parameters

$url

URL of the XML file containing the PMDLe profile

Returns

\PMDLEProfileinstance of PMDLEProfile

Write a PMDLEProfile instance to the $url

saveProfile(\PMDLEProfile $p, string $url) 

Parameters

$p

\PMDLEProfile

the PMDLEProfile instance to save

$url

string

URL of the XML file containing the PMDLe profile

parse the node $node and returns a valid Component instance This fucntion can be called recursively to parse the Component nodes included in the current one

parseComponent(\SimpleXMLElement $node) : \Component

Parameters

Returns

\Componentthe component added

 Properties

 

the XML tree

$profile : \SimpleXMLElement