\Ceo\ServicesTransformService

Transform pipeline master service.

Pipelines are a series of callbacks used to modify content before storage:

      $transform = new \Ceo\Services\TransformService;
      $transform->registerPipeline('content', [
          function($article) {
              $article->content .= "\n\n<!-- Last built " . date('c') . "-->";

              return $article
          }
      ]);
      ...
      $pipeline = $transform->pipelineFor('content');
      $pipeline->transform($inputData);

Summary

Methods
Properties
Constants
pipelineFor()
registerPipeline()
No public properties found
No constants found
No protected methods found
$pipelines
N/A
No private methods found
No private properties found
N/A

Properties

$pipelines

$pipelines : 

Type

Methods

pipelineFor()

pipelineFor(string  $type) : \Ceo\Services\Ceo\Pipeline

Retrieve a pipline for a given type

Parameters

string $type

Returns

\Ceo\Services\Ceo\Pipeline

registerPipeline()

registerPipeline(string  $type,   $actions = array()) : \Ceo\Services\Ceo\Pipeline

Register or re-register a pipeline

Parameters

string $type
$actions

Returns

\Ceo\Services\Ceo\Pipeline