PHP Class Swiftriver\PreProcessingSteps\GoogleEnterpriseLanguageServicePreProcessingStep

Inheritance: implements Swiftriver\Core\PreProcessing\IPreProcessingStep
ファイルを表示 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 use the Enterprise version of the Google Translation Services to both assertain the language the content was writen in and where possible and nessasary, translate that content to the base language.
ReturnRequiredParameters ( )

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