getFilterOptions() public method

{@inheritDoc}
public getFilterOptions ( $idList, $usedOnly, &$arrCount = null )
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  *
  * @SuppressWarnings(PHPMD.Superglobals)
  * @SuppressWarnings(PHPMD.CamelCaseVariableName)
  */
 public function getFilterOptions($idList, $usedOnly, &$arrCount = null)
 {
     if (!($idList || $usedOnly)) {
         return array('0' => $GLOBALS['TL_LANG']['MSC']['metamodelattribute_checkbox']['value_0'], '1' => $GLOBALS['TL_LANG']['MSC']['metamodelattribute_checkbox']['value_1']);
     }
     return parent::getFilterOptions($idList, $usedOnly, $arrCount);
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 public function getFilterOptions($idList, $usedOnly, &$arrCount = null)
 {
     $options = parent::getFilterOptions($idList, $usedOnly, $arrCount);
     foreach ($options as $k => $v) {
         $options[$k] = $this->getCountryLabel($k);
     }
     // Sort the result, see #11
     asort($options, SORT_LOCALE_STRING);
     return $options;
 }
Exemplo n.º 3
0
 /**
  * {@inheritDoc}
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 public function getFilterOptions($idList, $usedOnly, &$arrCount = null)
 {
     $options = parent::getFilterOptions($idList, $usedOnly, $arrCount);
     foreach ($options as $k => $v) {
         $options[$k] = $this->getCountryLabel($k);
     }
     return $options;
 }