code: public function getAttributeOptions($strAttribute, $objFilter = null)
      {
          $objAttribute = $this->getAttribute($strAttribute);
          if ($objAttribute) {
              if ($objFilter) {
                  $arrFilteredIds = $this->getMatchingIds($objFilter);
                  $arrFilteredIds = $objAttribute->sortIds($arrFilteredIds, 'ASC');
                  return $objAttribute->getFilterOptions($arrFilteredIds, true);
              } else {
                  return $objAttribute->getFilterOptions(null, true);
              }
          }
  
          return array();
      }
docs: {@inheritdoc}