source/Core/Module/Module.php
public function getInfo($sName, $iLang = null)
    {
        if (isset($this->_aModule[$sName])) {
            if ($iLang !== null && is_array($this->_aModule[$sName])) {
                $sValue = null;

                $sLang = \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang);

                if (!empty($this->_aModule[$sName])) {
                    if (!empty($this->_aModule[$sName][$sLang])) {
                        $sValue = $this->_aModule[$sName][$sLang];
                    } elseif (!empty($this->_aModule['lang'])) {
                        // trying to get value according default language
                        $sValue = $this->_aModule[$sName][$this->_aModule['lang']];
                    } else {
                        // returning first array value
                        $sValue = reset($this->_aModule[$sName]);
                    }

                    return $sValue;
                }
            } else {
                return $this->_aModule[$sName];
            }
        }
    }
public function getInfo($sName, $iLang = null)
    {
        if (isset($this->_aModule[$sName])) {
            if ($iLang !== null && is_array($this->_aModule[$sName])) {
                $sValue = null;

                $sLang = \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang);

                if (!empty($this->_aModule[$sName])) {
                    if (!empty($this->_aModule[$sName][$sLang])) {
                        $sValue = $this->_aModule[$sName][$sLang];
                    } elseif (!empty($this->_aModule['lang'])) {
                        // trying to get value according default language
                        $sValue = $this->_aModule[$sName][$this->_aModule['lang']];
                    } else {
                        // returning first array value
                        $sValue = reset($this->_aModule[$sName]);
                    }

                    return $sValue;
                }
            } else {
                return $this->_aModule[$sName];
            }
        }
    }
public function getInfo ( $ sName , $ iLang = null ) { if ( isset ( $ this -> _aModule [ $ sName ] ) ) { if ( $ iLang !== null && is_array ( $ this -> _aModule [ $ sName ] ) ) { $ sValue = null ; $ sLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getLanguageAbbr ( $ iLang ) ; if ( ! empty ( $ this -> _aModule [ $ sName ] ) ) { if ( ! empty ( $ this -> _aModule [ $ sName ] [ $ sLang ] ) ) { $ sValue = $ this -> _aModule [ $ sName ] [ $ sLang ] ; } elseif ( ! empty ( $ this -> _aModule [ 'lang' ] ) ) { // trying to get value according default language $ sValue = $ this -> _aModule [ $ sName ] [ $ this -> _aModule [ 'lang' ] ] ; } else { // returning first array value $ sValue = reset ( $ this -> _aModule [ $ sName ] ) ; } return $ sValue ; } } else { return $ this -> _aModule [ $ sName ] ; } } }
Get module info item. If second param is passed, will try
to get value according selected language.

@param string $sName name of info item to retrieve
@param string $iLang language ID

@return mixed
Get module info item . If second param is passed will try to get value according selected language .