\r\n

51Degrees Pipeline PHP  4.2Newer Version 4.4

51Degrees Pipeline for PHP

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
CustomFlowElement.php, and Pipeline.php.

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...

Protected Attributes

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

Member Function Documentation

◆ addLogger()

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

Add an instance of the logger class to the Pipeline.

Parameters
Logger -
Returns
PipelineBuilder

◆ build()

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

Build Pipeline once done.

Returns
Pipeline

◆ buildFromConfig()

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