Class

EasyRdf_TypeMapper

class EasyRdf_TypeMapper

Class to map between RDF Types and PHP Classes

Methods

static string get(string $type)

Get the registered class for an RDF type

static string set(string $type, string $class)

Register an RDF type with a PHP Class name

static  delete(string $type)

Delete an existing RDF type mapping.

Details

at line 57
static public string get(string $type)

Get the registered class for an RDF type

If a type is not registered, then this method will return null.

Parameters

string $type The RDF type (e.g. foaf:Person)

Return Value

string The class name (e.g. ModelFoafName)

at line 79
static public string set(string $type, string $class)

Register an RDF type with a PHP Class name

Parameters

string $type The RDF type (e.g. foaf:Person)
string $class The PHP class name (e.g. ModelFoafName)

Return Value

string The PHP class name

at line 102
static public delete(string $type)

Delete an existing RDF type mapping.

Parameters

string $type The RDF type (e.g. foaf:Person)