source/Application/Model/Attribute.php
protected function _getAttrId($sSelTitle)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDB();
        $sAttViewName = getViewName('oxattribute');

        return $oDb->getOne("select oxid from $sAttViewName where LOWER(oxtitle) = " . $oDb->quote(getStr()->strtolower($sSelTitle)));
    }
protected function _getAttrId($sSelTitle)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDB();
        $sAttViewName = getViewName('oxattribute');

        return $oDb->getOne("select oxid from $sAttViewName where LOWER(oxtitle) = " . $oDb->quote(getStr()->strtolower($sSelTitle)));
    }
protected function _getAttrId ( $ sSelTitle ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDB ( ) ; $ sAttViewName = getViewName ( 'oxattribute' ) ; return $ oDb -> getOne ( "select oxid from $sAttViewName where LOWER(oxtitle) = " . $ oDb -> quote ( getStr ( ) -> strtolower ( $ sSelTitle ) ) ) ; }
Searches for attribute by oxtitle. If exists returns attribute id

@param string $sSelTitle selection list title

@return mixed attribute id or false
Searches for attribute by oxtitle . If exists returns attribute id