\r\n

51Degrees Device Detection PHP  4.3

Device detection services for 51Degrees Pipeline

fiftyone\pipeline\core\PipelineBuilder Class Reference

Detailed Description

A PipelineBuilder generates a Pipeline object Before construction of the Pipeline, FlowElements are added to it There are also options for how JavaScript is output from the Pipeline.

Examples
cloud/configureFromFile.php, cloud/nativeModelLookup.php, and cloud/taclookup.php.

Inheritance diagram for fiftyone\pipeline\core\PipelineBuilder:

[legend]

Public Member Functions

 __construct ($settings=array())
 add ($flowElement)
Add FlowElement to be used in Pipeline. More...
 build ()
Build Pipeline once done. More...
 addLogger ($logger)
Add an instance of the logger class to the Pipeline. More...
 buildFromConfig ($file)
Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`. More...
 __construct ($settings=array())
 add ($flowElement)
Add FlowElement to be used in Pipeline. More...
 build ()
Build Pipeline once done. More...
 addLogger ($logger)
Add an instance of the logger class to the Pipeline. More...
 buildFromConfig ($file)
Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`. More...
 __construct ($settings=array())
 add ($flowElement)
Add FlowElement to be used in Pipeline. More...
 build ()
Build Pipeline once done. More...
 addLogger ($logger)
Add an instance of the logger class to the Pipeline. More...
 buildFromConfig ($file)
Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`. More...
 __construct ($settings=array())
 add ($flowElement)
Add FlowElement to be used in Pipeline. More...
 build ()
Build Pipeline once done. More...
 addLogger ($logger)
Add an instance of the logger class to the Pipeline. More...
 buildFromConfig ($file)
Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`. More...

Protected Attributes

 $flowElements = array()
array of FlowElements
 $settings = array()

Member Function Documentation

◆ addLogger() [1/4]

fiftyone\pipeline\core\PipelineBuilder::addLogger (   $logger )

Add an instance of the logger class to the Pipeline.

Parameters
Logger -
Returns
PipelineBuilder

◆ addLogger() [2/4]

fiftyone\pipeline\core\PipelineBuilder::addLogger (   $logger )

Add an instance of the logger class to the Pipeline.

Parameters
Logger -
Returns
PipelineBuilder

◆ addLogger() [3/4]

fiftyone\pipeline\core\PipelineBuilder::addLogger (   $logger )

Add an instance of the logger class to the Pipeline.

Parameters
Logger -
Returns
PipelineBuilder

◆ addLogger() [4/4]

fiftyone\pipeline\core\PipelineBuilder::addLogger (   $logger )

Add an instance of the logger class to the Pipeline.

Parameters
Logger -
Returns
PipelineBuilder

◆ build() [1/4]

fiftyone\pipeline\core\PipelineBuilder::build ( )

Build Pipeline once done.

Returns
Pipeline

◆ build() [2/4]

fiftyone\pipeline\core\PipelineBuilder::build ( )

Build Pipeline once done.

Returns
Pipeline

◆ build() [3/4]

fiftyone\pipeline\core\PipelineBuilder::build ( )

Build Pipeline once done.

Returns
Pipeline

◆ build() [4/4]

fiftyone\pipeline\core\PipelineBuilder::build ( )

Build Pipeline once done.

Returns
Pipeline

◆ buildFromConfig() [1/4]

fiftyone\pipeline\core\PipelineBuilder::buildFromConfig (   $file )

Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`.

Parameters
string - file name

◆ buildFromConfig() [2/4]

fiftyone\pipeline\core\PipelineBuilder::buildFromConfig (   $file )

Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`.

Parameters
string - file name

◆ buildFromConfig() [3/4]

fiftyone\pipeline\core\PipelineBuilder::buildFromConfig (   $file )

Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`.

Parameters
string - file name

◆ buildFromConfig() [4/4]

fiftyone\pipeline\core\PipelineBuilder::buildFromConfig (   $file )

Build from a JSON configuration file This JSON file should look like the following `{ "PipelineOptions": { "Elements": [ { "BuilderName": // Name of element as in use statement, "BuildParameters": { // An object of parameters passed to the constructor } }] }`.

Parameters
string - file name