This class represents a knowledge source

author bruno
package personalization
subpackage ksources

 Methods

Constructor

__construct(string $u) 

Parameters

$u

string

the url string of the knowledge source

Return the KSource url

getURL() : string

Returns

stringthe url

return a value for the data pointed with the path $p

getValueFromPath(string $path, string $date) 
Inherited
inherited_from \KSourceDataProvider::getValueFromPath()

Parameters

$path

string

the path to the wanted data

$date

string

optional argument to precise the date of the wanted data

Return true if the KSource matches the given constraint

matchConstraint(string $c) : int

Parameters

$c

string

the string constraint

Returns

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

 Properties

 

$url : \url