models/CommonProperty.php
public function getPropertyVariants()
    {
        $arValueList = [];

        //Get and check settings array
        $arSettings = $this->settings;
        if (empty($arSettings) || !isset($arSettings['list']) || empty($arSettings['list'])) {
            return $arValueList;
        }

        //Get property value variants
        foreach ($arSettings['list'] as $arValue) {
            if (!isset($arValue['value']) || empty($arValue['value'])) {
                continue;
            }

            $arValueList[$arValue['value']] = $arValue['value'];
        }

        natsort($arValueList);

        return $arValueList;
    }
public function getPropertyVariants()
    {
        $arValueList = [];

        //Get and check settings array
        $arSettings = $this->settings;
        if (empty($arSettings) || !isset($arSettings['list']) || empty($arSettings['list'])) {
            return $arValueList;
        }

        //Get property value variants
        foreach ($arSettings['list'] as $arValue) {
            if (!isset($arValue['value']) || empty($arValue['value'])) {
                continue;
            }

            $arValueList[$arValue['value']] = $arValue['value'];
        }

        natsort($arValueList);

        return $arValueList;
    }
public function getPropertyVariants ( ) { $ arValueList = [ ] ; //Get and check settings array $ arSettings = $ this -> settings ; if ( empty ( $ arSettings ) || ! isset ( $ arSettings [ 'list' ] ) || empty ( $ arSettings [ 'list' ] ) ) { return $ arValueList ; } //Get property value variants foreach ( $ arSettings [ 'list' ] as $ arValue ) { if ( ! isset ( $ arValue [ 'value' ] ) || empty ( $ arValue [ 'value' ] ) ) { continue ; } $ arValueList [ $ arValue [ 'value' ] ] = $ arValue [ 'value' ] ; } natsort ( $ arValueList ) ; return $ arValueList ; }
Get property variants from settings
@return array
Get property variants from settings