\r\n

51Degrees Pipeline PHP  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 ($fileOrConfig)
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...

Data Fields

 $pipelines
 $addJavaScriptBuilder
 $javascriptBuilderSettings
 $useSetHeaderProperties

Protected Attributes

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

Member Function Documentation

◆ add()

fiftyone\pipeline\core\PipelineBuilder::add (   $flowElement )

Add FlowElement to be used in Pipeline.

Parameters
FlowElement -

◆ 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 (   $fileOrConfig )

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 of the file to load config, or alternatively pass a config object already read from file
Returns
Pipeline
On This Page