models/CommonProperty.php
public function getWidgetData()
    {
        $arResult = [];

        switch ($this->type) {
            case self::TYPE_INPUT:
                $arResult = $this->getInputFieldSettings();
                break;
            case self::TYPE_NUMBER:
                $arResult = $this->getNumberFieldSettings();
                break;
            case self::TYPE_TEXT_AREA:
                $arResult = $this->getTextareaFieldSettings();
                break;
            case self::TYPE_RICH_EDITOR:
                $arResult = $this->getRichEditorFieldSettings();
                break;
            case self::TYPE_SINGLE_CHECKBOX:
                $arResult = $this->getSingleCheckboxFieldSettings();
                break;
            case self::TYPE_SWITCH:
                $arResult = $this->getSwitchFieldSettings();
                break;
            case self::TYPE_CHECKBOX:
                $arResult = $this->getCheckboxListSettings();
                break;
            case self::TYPE_BALLOON:
                $arResult = $this->getBalloonSettings();
                break;
            case self::TYPE_TAG_LIST:
                $arResult = $this->getTagListSettings();
                break;
            case self::TYPE_SELECT:
                $arResult = $this->getSelectSettings();
                break;
            case self::TYPE_RADIO:
                $arResult = $this->getRadioSettings();
                break;
            case self::TYPE_DATE:
                $arResult = $this->getDateSettings();
                break;
            case self::TYPE_COLOR_PICKER:
                $arResult = $this->getColorPickerSettings();
                break;
            /** FILE FINDER TYPE */
            case self::TYPE_MEDIA_FINDER:
                $arResult = $this->getMediaFinderSettings();
                break;
            default:
                return $arResult;
        }

        //Get common widget settings
        if (empty($arResult)) {
            return $arResult;
        }

        $arResult = array_merge($arResult, $this->getDefaultConfigSettings());

        return $arResult;
    }
public function getWidgetData()
    {
        $arResult = [];

        switch ($this->type) {
            case self::TYPE_INPUT:
                $arResult = $this->getInputFieldSettings();
                break;
            case self::TYPE_NUMBER:
                $arResult = $this->getNumberFieldSettings();
                break;
            case self::TYPE_TEXT_AREA:
                $arResult = $this->getTextareaFieldSettings();
                break;
            case self::TYPE_RICH_EDITOR:
                $arResult = $this->getRichEditorFieldSettings();
                break;
            case self::TYPE_SINGLE_CHECKBOX:
                $arResult = $this->getSingleCheckboxFieldSettings();
                break;
            case self::TYPE_SWITCH:
                $arResult = $this->getSwitchFieldSettings();
                break;
            case self::TYPE_CHECKBOX:
                $arResult = $this->getCheckboxListSettings();
                break;
            case self::TYPE_BALLOON:
                $arResult = $this->getBalloonSettings();
                break;
            case self::TYPE_TAG_LIST:
                $arResult = $this->getTagListSettings();
                break;
            case self::TYPE_SELECT:
                $arResult = $this->getSelectSettings();
                break;
            case self::TYPE_RADIO:
                $arResult = $this->getRadioSettings();
                break;
            case self::TYPE_DATE:
                $arResult = $this->getDateSettings();
                break;
            case self::TYPE_COLOR_PICKER:
                $arResult = $this->getColorPickerSettings();
                break;
            /** FILE FINDER TYPE */
            case self::TYPE_MEDIA_FINDER:
                $arResult = $this->getMediaFinderSettings();
                break;
            default:
                return $arResult;
        }

        //Get common widget settings
        if (empty($arResult)) {
            return $arResult;
        }

        $arResult = array_merge($arResult, $this->getDefaultConfigSettings());

        return $arResult;
    }
public function getWidgetData ( ) { $ arResult = [ ] ; switch ( $ this -> type ) { case self :: TYPE_INPUT : $ arResult = $ this -> getInputFieldSettings ( ) ; break ; case self :: TYPE_NUMBER : $ arResult = $ this -> getNumberFieldSettings ( ) ; break ; case self :: TYPE_TEXT_AREA : $ arResult = $ this -> getTextareaFieldSettings ( ) ; break ; case self :: TYPE_RICH_EDITOR : $ arResult = $ this -> getRichEditorFieldSettings ( ) ; break ; case self :: TYPE_SINGLE_CHECKBOX : $ arResult = $ this -> getSingleCheckboxFieldSettings ( ) ; break ; case self :: TYPE_SWITCH : $ arResult = $ this -> getSwitchFieldSettings ( ) ; break ; case self :: TYPE_CHECKBOX : $ arResult = $ this -> getCheckboxListSettings ( ) ; break ; case self :: TYPE_BALLOON : $ arResult = $ this -> getBalloonSettings ( ) ; break ; case self :: TYPE_TAG_LIST : $ arResult = $ this -> getTagListSettings ( ) ; break ; case self :: TYPE_SELECT : $ arResult = $ this -> getSelectSettings ( ) ; break ; case self :: TYPE_RADIO : $ arResult = $ this -> getRadioSettings ( ) ; break ; case self :: TYPE_DATE : $ arResult = $ this -> getDateSettings ( ) ; break ; case self :: TYPE_COLOR_PICKER : $ arResult = $ this -> getColorPickerSettings ( ) ; break ; /** FILE FINDER TYPE */ case self :: TYPE_MEDIA_FINDER : $ arResult = $ this -> getMediaFinderSettings ( ) ; break ; default : return $ arResult ; } //Get common widget settings if ( empty ( $ arResult ) ) { return $ arResult ; } $ arResult = array_merge ( $ arResult , $ this -> getDefaultConfigSettings ( ) ) ; return $ arResult ; }
Get widget data
@return array
Get widget data