예제 #1
0
 /**
  * Render a single option line by cObject or default
  *
  * @param array $optionData
  * @return string $option;
  */
 protected function renderOptionData($optionData)
 {
     foreach ($this->displayFields as $displayField) {
         $values[] = $optionData[$displayField->getIdentifier()];
     }
     $optionData['allDisplayFields'] = implode(' ', $values);
     $option = Tx_PtExtlist_Utility_RenderValue::renderByConfigObjectUncached($optionData, $this->filterConfig);
     return $option;
 }
예제 #2
0
 /**
  * (non-PHPdoc)
  * @see Classes/Domain/Model/Filter/DataProvider/Tx_PtExtlist_Domain_Model_Filter_DataProvider_DataProviderInterface::getRenderedOptions()
  */
 public function getRenderedOptions()
 {
     $renderedOptions = array();
     foreach ($this->tsOptions as $key => $option) {
         if (is_array($option)) {
             if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($option['value'], 'LLL:')) {
                 $optionData['allDisplayFields'] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($option['value'], '');
             } else {
                 $optionData['allDisplayFields'] = $option['value'];
             }
             $optionKey = $option['key'];
         } else {
             $optionKey = $key;
             if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($option, 'LLL:')) {
                 $optionData['allDisplayFields'] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($option, '');
             } else {
                 $optionData['allDisplayFields'] = trim($option);
             }
         }
         $renderedOptions[$optionKey] = array('value' => Tx_PtExtlist_Utility_RenderValue::renderByConfigObjectUncached($optionData, $this->filterConfig), 'selected' => false);
     }
     return $renderedOptions;
 }
예제 #3
0
 /**
  * Render a single option line by cObject or default
  *
  * @param array $optionData
  * @return string
  */
 protected function renderOptionData($optionData)
 {
     $option = Tx_PtExtlist_Utility_RenderValue::renderByConfigObjectUncached($optionData, $this->filterConfig);
     return $option;
 }
예제 #4
0
 /**
  * (non-PHPdoc)
  * @see Classes/Domain/Model/Filter/DataProvider/Tx_PtExtlist_Domain_Model_Filter_DataProvider_DataProviderInterface::getRenderedOptions()
  */
 public function getRenderedOptions()
 {
     $renderedOptions = array();
     $timeSpanList = $this->buildTimeStampList();
     foreach ($timeSpanList as $key => $timestamp) {
         $optionData['allDisplayFields'] = strftime($this->dateIteratorFormat, $timestamp);
         $renderedOptions[$key] = array('value' => Tx_PtExtlist_Utility_RenderValue::renderByConfigObjectUncached($optionData, $this->filterConfig), 'selected' => false);
     }
     return $renderedOptions;
 }