예제 #1
0
 protected function initFilterByTsConfig()
 {
     parent::initFilterByTsConfig();
     $this->maxItems = (int) $this->filterConfig->getSettings('maxItems');
     $this->minSize = (int) $this->filterConfig->getSettings('minSize');
     $this->maxSize = (int) $this->filterConfig->getSettings('maxSize');
     $this->initColors();
 }
예제 #2
0
 /**
  * @see Tx_PtExtlist_Domain_Model_Filter_AbstractFilter::initFilterByTsConfig()
  *
  */
 protected function initFilterByTsConfig()
 {
     parent::initFilterByTsConfig();
     if ($this->filterConfig->getSettings('multiple')) {
         $this->multiple = $this->filterConfig->getSettings('multiple');
     }
     $this->treeNodeRepository = $this->filterConfig->getSettings('treeNodeRepository');
     if (!$this->treeNodeRepository || !class_exists($this->treeNodeRepository)) {
         throw new Exception('The treeNodeRepository with className ' . $this->treeRepository . ' could no be found. ', 1328459171);
     }
     $this->treeNamespace = trim($this->filterConfig->getSettings('treeNamespace'));
     if ($this->filterConfig->getSettings('treeMaxDepth')) {
         $this->treeMaxDepth = $this->filterConfig->getSettings('treeMaxDepth');
     }
     if (array_key_exists('treeRootNode', $this->filterConfig->getSettings())) {
         $this->treeRootNode = (int) $this->filterConfig->getSettings('treeRootNode');
     }
     if (array_key_exists('treeRespectEnableFields', $this->filterConfig->getSettings())) {
         $this->treeRespectEnableFields = (int) $this->filterConfig->getSettings('treeRespectEnableFields') === 1 ? TRUE : FALSE;
     }
 }
예제 #3
0
 /**
  * Return filter value string for breadcrumb
  *
  * @return string
  */
 public function getDisplayValue()
 {
     $options = parent::getOptions();
     $displayValues = array();
     foreach ($options as $option) {
         if ($option['selected'] === true) {
             $displayValues[] = $option['value'];
         }
     }
     return implode(', ', $displayValues);
 }