source/Application/Model/File.php
public function getMaxDownloadsCount()
    {
        $iMaxCount = $this->oxfiles__oxmaxdownloads->value;
        //if value is -1, takes global options
        if ($iMaxCount < 0) {
            $iMaxCount = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("iMaxDownloadsCount");
        }

        return $iMaxCount;
    }
public function getMaxDownloadsCount()
    {
        $iMaxCount = $this->oxfiles__oxmaxdownloads->value;
        //if value is -1, takes global options
        if ($iMaxCount < 0) {
            $iMaxCount = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("iMaxDownloadsCount");
        }

        return $iMaxCount;
    }
public function getMaxDownloadsCount ( ) { $ iMaxCount = $ this -> oxfiles__oxmaxdownloads -> value ; //if value is -1, takes global options if ( $ iMaxCount < 0 ) { $ iMaxCount = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( "iMaxDownloadsCount" ) ; } return $ iMaxCount ; }
Returns max download count of file

@return int
Returns max download count of file