lib/traits/elements.php
protected function processingElementsResult($element)
    {
        $arElement = $element;

        if ($this->arParams['RESULT_PROCESSING_MODE'] === 'EXTENDED')
        {
            $arElement = $element->GetFields();
            $arElement['PROPS'] = $element->GetProperties();
        }
        elseif (!empty($this->arParams['SELECT_PROPS']))
        {
            foreach ($this->arParams['SELECT_PROPS'] as $propCode)
            {
                if (trim($propCode))
                {
                    $arProp = explode('.', $propCode);
                    $propCode = array_shift($arProp);
                    $propValue = $element['PROPERTY_'.$propCode.'_VALUE'];
                    $propDescr = $element['PROPERTY_'.$propCode.'_DESCRIPTION'];

                    if ($propValue)
                    {
                        $arElement['PROPS'][$propCode]['VALUE'] = $propValue;
                    }

                    if ($propDescr)
                    {
                        $arElement['PROPS'][$propCode]['DESCRIPTION'] = $propDescr;
                    }

                    if (!empty($arElement['PROPS'][$propCode]))
                    {
                        foreach ($arProp as $field)
                        {
                            $arElement['PROPS'][$propCode]['LINKED'][$field] = $element['PROPERTY_'.$propCode.'_'.$field];
                        }
                    }
                }
            }
        }

        if ($arElement = $this->prepareElementsResult($arElement))
        {
            return $arElement;
        }
        else
        {
            return false;
        }
    }
protected function processingElementsResult($element)
    {
        $arElement = $element;

        if ($this->arParams['RESULT_PROCESSING_MODE'] === 'EXTENDED')
        {
            $arElement = $element->GetFields();
            $arElement['PROPS'] = $element->GetProperties();
        }
        elseif (!empty($this->arParams['SELECT_PROPS']))
        {
            foreach ($this->arParams['SELECT_PROPS'] as $propCode)
            {
                if (trim($propCode))
                {
                    $arProp = explode('.', $propCode);
                    $propCode = array_shift($arProp);
                    $propValue = $element['PROPERTY_'.$propCode.'_VALUE'];
                    $propDescr = $element['PROPERTY_'.$propCode.'_DESCRIPTION'];

                    if ($propValue)
                    {
                        $arElement['PROPS'][$propCode]['VALUE'] = $propValue;
                    }

                    if ($propDescr)
                    {
                        $arElement['PROPS'][$propCode]['DESCRIPTION'] = $propDescr;
                    }

                    if (!empty($arElement['PROPS'][$propCode]))
                    {
                        foreach ($arProp as $field)
                        {
                            $arElement['PROPS'][$propCode]['LINKED'][$field] = $element['PROPERTY_'.$propCode.'_'.$field];
                        }
                    }
                }
            }
        }

        if ($arElement = $this->prepareElementsResult($arElement))
        {
            return $arElement;
        }
        else
        {
            return false;
        }
    }
protected function processingElementsResult ( $ element ) { $ arElement = $ element ; if ( $ this -> arParams [ 'RESULT_PROCESSING_MODE' ] === 'EXTENDED' ) { $ arElement = $ element -> GetFields ( ) ; $ arElement [ 'PROPS' ] = $ element -> GetProperties ( ) ; } elseif ( ! empty ( $ this -> arParams [ 'SELECT_PROPS' ] ) ) { foreach ( $ this -> arParams [ 'SELECT_PROPS' ] as $ propCode ) { if ( trim ( $ propCode ) ) { $ arProp = explode ( '.' , $ propCode ) ; $ propCode = array_shift ( $ arProp ) ; $ propValue = $ element [ 'PROPERTY_' . $ propCode . '_VALUE' ] ; $ propDescr = $ element [ 'PROPERTY_' . $ propCode . '_DESCRIPTION' ] ; if ( $ propValue ) { $ arElement [ 'PROPS' ] [ $ propCode ] [ 'VALUE' ] = $ propValue ; } if ( $ propDescr ) { $ arElement [ 'PROPS' ] [ $ propCode ] [ 'DESCRIPTION' ] = $ propDescr ; } if ( ! empty ( $ arElement [ 'PROPS' ] [ $ propCode ] ) ) { foreach ( $ arProp as $ field ) { $ arElement [ 'PROPS' ] [ $ propCode ] [ 'LINKED' ] [ $ field ] = $ element [ 'PROPERTY_' . $ propCode . '_' . $ field ] ; } } } } } if ( $ arElement = $ this -> prepareElementsResult ( $ arElement ) ) { return $ arElement ; } else { return false ; } }
Processing request of the elements

@param \CIBlockResult $element
@return array
Processing request of the elements