Class DDRServiceConfigurationFactory

Description

The DDRServiceConfigurationFactory class defines a static getServiceConfiguration method that returns the configuration parameters to use when initializing the implementation of the DDR Simple API used within the mobileOK Pythia plug-in to identify and retrieve properties of the requesting device.

Located in /common/plugins/DDRServiceConfigurationFactory.php (line 29)


	
			
Method Summary
static mixed getServiceConfiguration (string $clazz, mixed $params)
Methods
static method getServiceConfiguration (line 51)

Initializes and return the Service configuration settings to use when accessing the underlying device description repository.

The configuration setting are to be sent to the ServiceFactory class or Service::initialize().

The class tries to include and instantiate a class named after the provided $clazz argument. The class must be called: [$clazz]ServiceConfiguration and must implement the DDRServiceConfiguration interface defined below.

If the class is not already defined, a file with the same name as the class is looked up in the directory of the DDR Simple API implementation or in current directory, and included.

  • return: the configuration settings to use with that DDR implementation
  • access: public
static mixed getServiceConfiguration (string $clazz, mixed $params)
  • string $clazz: the DDR implementation name
  • mixed $params: Parameters that will be passed to created instance

Documentation generated on Tue, 17 Nov 2009 19:00:38 +0100 by phpDocumentor 1.4.2