This class describes a Pedagogical Ressource
| author | bruno |
|---|---|
| package | personalization |
| subpackage | ksources |
__construct(string $url, $xml, boolean $abs)
stringthe url of the knowledge ressource
booleantrue if abstract ressource
__toString() : string
stringstring representation of the PedagogicalRessourcegetDescriptorValue(\Descriptor | string $d) : string | null
getDescriptors() : \Descriptor[] | null
\Descriptor[]nullthe array of descriptors for this ressourcegetURL() : string
| inherited_from | \KSource::getURL() |
|---|
stringthe urlgetValueFromPath(string $path, string $d) : \SimpleXMLElement | \sting | null
getXML() : \SimpleXMLElement
\SimpleXMLElementthe XML fragment representing this ressource as nodeisAbstract() : boolean
booleanthe value of $this->abstractmatchConstraint(string $c) : int
| see | \KSource::matchConstraint() |
|---|
stringthe constraint string
inta completion code, if 0: no matches, 1: match, other: error$abstract : boolean
$desc : \Descriptor
This array contains the descriptors used for the ressource.
For each descriptor, a corresponding value is stored in the values array at the same index
$url : \url
| inherited_from | \KSource::$$url |
|---|
$values : string[]
This array contains the values corresponding to the for the ressource descriptors.
| see | \PedagogicalRessource#desc |
|---|
$xmlNode : \SimpleXMLElement