classes/item/MainItem.php
public function getLangAttribute($sName, $sLangCode = null)
    {
        if (empty($sName)) {
            return null;
        }

        if (empty($sLangCode)) {
            $sLangCode = self::$sActiveLang;
        }

        if (empty($sLangCode)) {
            return $this->getAttribute($sName);
        }

        $sLangName = $sName.'|'.$sLangCode;
        if (!empty($this->arModelData) && isset($this->arModelData[$sLangName])) {
            return $this->arModelData[$sLangName];
        }

        return $this->getAttribute($sName);
    }
public function getLangAttribute($sName, $sLangCode = null)
    {
        if (empty($sName)) {
            return null;
        }

        if (empty($sLangCode)) {
            $sLangCode = self::$sActiveLang;
        }

        if (empty($sLangCode)) {
            return $this->getAttribute($sName);
        }

        $sLangName = $sName.'|'.$sLangCode;
        if (!empty($this->arModelData) && isset($this->arModelData[$sLangName])) {
            return $this->arModelData[$sLangName];
        }

        return $this->getAttribute($sName);
    }
public function getLangAttribute ( $ sName , $ sLangCode = null ) { if ( empty ( $ sName ) ) { return null ; } if ( empty ( $ sLangCode ) ) { $ sLangCode = self :: $ sActiveLang ; } if ( empty ( $ sLangCode ) ) { return $ this -> getAttribute ( $ sName ) ; } $ sLangName = $ sName . '|' . $ sLangCode ; if ( ! empty ( $ this -> arModelData ) && isset ( $ this -> arModelData [ $ sLangName ] ) ) { return $ this -> arModelData [ $ sLangName ] ; } return $ this -> getAttribute ( $ sName ) ; }
Get lang attribute value
@param string $sName
@param string $sLangCode
@return mixed|null
Get lang attribute value