public function getSearchSortingDefaultOrderBySortOptionName($sortOptionName = '', $defaultIfEmpty = 'asc')
    {
        $sortOrderSpecificPath = 'plugin.tx_solr.search.sorting.options.' . $sortOptionName . '.defaultOrder';
        $specificSortOrder = $this->getValueByPathOrDefaultValue($sortOrderSpecificPath, null);

        // if we have a concrete setting, use it
        if ($specificSortOrder !== null) {
            return mb_strtolower($specificSortOrder);
        }

        // no specific setting, check common setting
        $commonPath = 'plugin.tx_solr.search.sorting.defaultOrder';
        $commonATagParamOrDefaultValue = $this->getValueByPathOrDefaultValue($commonPath, $defaultIfEmpty);
        return mb_strtolower($commonATagParamOrDefaultValue);
    }
public function getSearchSortingDefaultOrderBySortOptionName($sortOptionName = '', $defaultIfEmpty = 'asc')
    {
        $sortOrderSpecificPath = 'plugin.tx_solr.search.sorting.options.' . $sortOptionName . '.defaultOrder';
        $specificSortOrder = $this->getValueByPathOrDefaultValue($sortOrderSpecificPath, null);

        // if we have a concrete setting, use it
        if ($specificSortOrder !== null) {
            return mb_strtolower($specificSortOrder);
        }

        // no specific setting, check common setting
        $commonPath = 'plugin.tx_solr.search.sorting.defaultOrder';
        $commonATagParamOrDefaultValue = $this->getValueByPathOrDefaultValue($commonPath, $defaultIfEmpty);
        return mb_strtolower($commonATagParamOrDefaultValue);
    }
public function getSearchSortingDefaultOrderBySortOptionName ( $ sortOptionName = '' , $ defaultIfEmpty = 'asc' ) { $ sortOrderSpecificPath = 'plugin.tx_solr.search.sorting.options.' . $ sortOptionName . '.defaultOrder' ; $ specificSortOrder = $ this -> getValueByPathOrDefaultValue ( $ sortOrderSpecificPath , null ) ; // if we have a concrete setting, use it if ( $ specificSortOrder !== null ) { return mb_strtolower ( $ specificSortOrder ) ; } // no specific setting, check common setting $ commonPath = 'plugin.tx_solr.search.sorting.defaultOrder' ; $ commonATagParamOrDefaultValue = $ this -> getValueByPathOrDefaultValue ( $ commonPath , $ defaultIfEmpty ) ; return mb_strtolower ( $ commonATagParamOrDefaultValue ) ; }
Retrieves the sorting default order for a sort option.

plugin.tx_solr.search.sorting.options.<sortOptionName>.defaultOrder

or

plugin.tx_solr.search.sorting.defaultOrder


@param string $sortOptionName
@param string $defaultIfEmpty
@return string
Retrieves the sorting default order for a sort option .