/**
  * Preperation function for every table
  *
  * @return void
  */
 public function savePreflightFinisher()
 {
     if ($this->isSaveToAnyTableActivated()) {
         $this->addArrayToDataArray($this->mailRepository->getVariablesWithMarkersFromMail($this->mail));
         foreach ((array) array_keys($this->configuration) as $tableKey) {
             $table = StringUtility::removeLastDot($tableKey);
             $this->contentObject->start($this->getDataArray());
             $tableConfiguration = $this->configuration[$tableKey];
             if ($this->isSaveToAnyTableActivatedForSpecifiedTable($tableConfiguration)) {
                 $this->saveSpecifiedTablePreflight($table, $tableConfiguration);
             }
         }
     }
 }
 /**
  * Preperation function for every table
  *
  * @return void
  */
 public function savePreflightFinisher()
 {
     if ($this->isConfigurationAvailable()) {
         foreach (array_keys($this->configuration) as $key) {
             $this->contentObject->start($this->getDataArray());
             $tableConfiguration = $this->configuration[$key];
             $numberKey = StringUtility::removeLastDot($key);
             if ($this->isSaveToAnyTableActivatedForSpecifiedTable($tableConfiguration)) {
                 if (!$this->isDeprecatedConfiguration($numberKey)) {
                     $this->saveSpecifiedTablePreflight($numberKey, $tableConfiguration);
                 } else {
                     $this->saveSpecifiedTableDeprecatedPreflight($numberKey, $tableConfiguration);
                 }
             }
         }
     }
 }
예제 #3
0
 /**
  * removeLastDot Test
  *
  * @param string $string
  * @param string $expectedResult
  * @dataProvider removeLastDotReturnsStringDataProvider
  * @return void
  * @test
  */
 public function removeLastDotReturnsString($string, $expectedResult)
 {
     $this->assertSame($expectedResult, StringUtility::removeLastDot($string));
 }