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

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

        return $iExpTime;
    }
public function getDownloadExpirationTime ( ) { $ iExpTime = $ this -> oxfiles__oxdownloadexptime -> value ; //if value is -1, takes global options if ( $ iExpTime < 0 ) { $ iExpTime = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( "iDownloadExpirationTime" ) ; } return $ iExpTime ; }
Returns download link expiration time in hours, after the first download

@return int
Returns download link expiration time in hours after the first download