PHP Class Swiftriver\PreProcessingSteps\GoogleLanguageServicePreProcessingStep

Inheritance: implements Swiftriver\Core\PreProcessing\IPreProcessingStep
Show file Open project: ushahidi/Swiftriver-2011

Public Methods

Method Description
Description ( )
Name ( )
Process ( Content[] $contentItems, CoreConfigurationHandler $configuration, Log $logger ) : Content[] Given a collection of content items, this method will firstly ascertain in what language content is presented. If this differs from the base language set up in the $configuration then all text for the content will be translated, the original test will be relegated to the second position of the $content->text collection and the translation into the base language will be placed at position 0 in the $content->text collection.
ReturnRequiredParameters ( )
__construct ( )

Method Details

Description() public method

public Description ( )

Name() public method

public Name ( )

Process() public method

Each piece of content that comes into this method, can expect to be returned with this pattern - ie: the $content->text[0] LanguageSpecificText class being in the base language and (if applicable) the original LanguageSpecificText class begin at $content->text[1]
public Process ( Content[] $contentItems, CoreConfigurationHandler $configuration, Log $logger ) : Content[]
$contentItems Swiftriver\Core\ObjectModel\Content[]
$configuration Swiftriver\Core\Configuration\ConfigurationHandlers\CoreConfigurationHandler
$logger Log
return Swiftriver\Core\ObjectModel\Content[]

ReturnRequiredParameters() public method

__construct() public method

public __construct ( )