{@inheritDoc}
public getFilterOptions ( $idList, $usedOnly, &$arrCount = null ) |
/** * {@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); }
/** * {@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; }
/** * {@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; }