This class represents a Profile in PMDLe model It contains the data of the structure node in XML representation

author bruno
package personalization
subpackage ksources

 Methods

Constructs a new PMDLEProfile instance, from a url

__construct(string $url, \SimpleXMLElement $xml) 

Parameters

$url

string

the url of the knowledge ressource

$xml

\SimpleXMLElement

the SimpleXMLElement representation of the profile

Add the graph $g to the candidates array

addGraphCandidate(\PedagogicalGraph $g) 

Parameters

$g

\PedagogicalGraph

the graph to add to candidates

Add the stone $s to the list stones

addStone(\Stone $s) 

Parameters

$s

\Stone

the stone to add to stones

getter for author

getAuthor() : string

Returns

stringthe value of author

getter for cdate

getCDate() : string

Returns

stringthe value of cdate

get the candidates graph array

getGraphCandidate() : \PedagogicalGraph[]

Returns

\PedagogicalGraph[]$g the candidates graph array

getter for id

getId() : int

Returns

intthe value of id

getter for mdate

getMDate() : string

Returns

stringthe value of mdate

getter for name

getName() : string

Returns

stringthe value of name

getter for the stone with given name

getStone(string $n) : \Stone | null

Parameters

$n

string

n the name of the stone

Returns

\Stonenullthe first stone named $n or null if no such stone

getter for stones

getStones() : \Stone

Returns

\Stonethe stones array

getter for studentFName

getStudentFName() : string

Returns

stringthe value of studentFName

getter for studentName

getStudentName() : string

Returns

stringthe value of studentName

Return the KSource url

getURL() : string
Inherited
inherited_from \KSource::getURL()
inherited_from \Profile::getURL()

Returns

stringthe url

This function resolves and return the value of the path Syntax: stone/component(/component).

getValueFromPath(string $path, string $d) : string | null

..

Parameters

$path

string

path to a value in the component tree

$d

string

the date for the value. If not given, return the last evaluation value

Exceptions

\InvalidRessourcePathException

Returns

stringnullthe value corresponding to the path or null if invalid path

the argument should be a valid XPATH query

matchConstraint(string $c) : int
see \KSource::matchConstraint()

Parameters

$c

string

the constraint xpath string

Returns

inta completion code, if 0: no matches, 1: match, other: error

remove the graph $g of the candidates array

removeGraphCandidate(\PedagogicalGraph $g) 

Parameters

$g

\PedagogicalGraph

the graph to remove to candidates array

setter for author

setAuthor(string $a) 

Parameters

$a

string

the value for author

setter for cdate

setCDate(string $cd) 

Parameters

$cd

string

the value for cdate

setter for id

setId(int $i) 

Parameters

$i

int

i the value for id

setter for mdate

setMDate(string $md) 

Parameters

$md

string

the value for mdate

setter for name

setName(string $n) 

Parameters

$n

string

the value for name

setter for studentFName

setStudentFName(string $sfn) 

Parameters

$sfn

string

the value for studentFName

setter for studentName

setStudentName(string $sn) 

Parameters

$sn

string

the value for studentName

 Properties

 

$author : string
 

$cdate : string
 

the Pedagogical graph candidates array

$gCands : \PedagogicalGraph[]
 

$id : int
 

$mdate : string
 

$name : string
 

$stones : \Stones[]
 

$studentFName : string
 

$studentName : string
 

$url : \url
Inherited
inherited_from \KSource::$$url
inherited_from \Profile::$$url
 

instance of SimpleXMLElement representing the profile

$xml : \SimpleXMLElement