EasyRdf API Documentation
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 58
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. Model_Foaf_Name)

at line 80
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. Model_Foaf_Name)

Return Value

string The PHP class name

at line 103
static public delete(string $type)

Delete an existing RDF type mapping.

Parameters

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