source/Application/Controller/Admin/ArticleFiles.php
protected function _processOptions($aParams)
    {
        if (!is_array($aParams)) {
            $aParams = [];
        }

        if (!isset($aParams["oxfiles__oxdownloadexptime"]) || $aParams["oxfiles__oxdownloadexptime"] == "") {
            $aParams["oxfiles__oxdownloadexptime"] = -1;
        }
        if (!isset($aParams["oxfiles__oxlinkexptime"]) || $aParams["oxfiles__oxlinkexptime"] == "") {
            $aParams["oxfiles__oxlinkexptime"] = -1;
        }
        if (!isset($aParams["oxfiles__oxmaxunregdownloads"]) || $aParams["oxfiles__oxmaxunregdownloads"] == "") {
            $aParams["oxfiles__oxmaxunregdownloads"] = -1;
        }
        if (!isset($aParams["oxfiles__oxmaxdownloads"]) || $aParams["oxfiles__oxmaxdownloads"] == "") {
            $aParams["oxfiles__oxmaxdownloads"] = -1;
        }

        return $aParams;
    }
protected function _processOptions($aParams)
    {
        if (!is_array($aParams)) {
            $aParams = [];
        }

        if (!isset($aParams["oxfiles__oxdownloadexptime"]) || $aParams["oxfiles__oxdownloadexptime"] == "") {
            $aParams["oxfiles__oxdownloadexptime"] = -1;
        }
        if (!isset($aParams["oxfiles__oxlinkexptime"]) || $aParams["oxfiles__oxlinkexptime"] == "") {
            $aParams["oxfiles__oxlinkexptime"] = -1;
        }
        if (!isset($aParams["oxfiles__oxmaxunregdownloads"]) || $aParams["oxfiles__oxmaxunregdownloads"] == "") {
            $aParams["oxfiles__oxmaxunregdownloads"] = -1;
        }
        if (!isset($aParams["oxfiles__oxmaxdownloads"]) || $aParams["oxfiles__oxmaxdownloads"] == "") {
            $aParams["oxfiles__oxmaxdownloads"] = -1;
        }

        return $aParams;
    }
protected function _processOptions ( $ aParams ) { if ( ! is_array ( $ aParams ) ) { $ aParams = [ ] ; } if ( ! isset ( $ aParams [ "oxfiles__oxdownloadexptime" ] ) || $ aParams [ "oxfiles__oxdownloadexptime" ] == "" ) { $ aParams [ "oxfiles__oxdownloadexptime" ] = - 1 ; } if ( ! isset ( $ aParams [ "oxfiles__oxlinkexptime" ] ) || $ aParams [ "oxfiles__oxlinkexptime" ] == "" ) { $ aParams [ "oxfiles__oxlinkexptime" ] = - 1 ; } if ( ! isset ( $ aParams [ "oxfiles__oxmaxunregdownloads" ] ) || $ aParams [ "oxfiles__oxmaxunregdownloads" ] == "" ) { $ aParams [ "oxfiles__oxmaxunregdownloads" ] = - 1 ; } if ( ! isset ( $ aParams [ "oxfiles__oxmaxdownloads" ] ) || $ aParams [ "oxfiles__oxmaxdownloads" ] == "" ) { $ aParams [ "oxfiles__oxmaxdownloads" ] = - 1 ; } return $ aParams ; }
Process config options. If value is not set, save as "-1" to database

@param array $aParams params

@return array
Process config options . If value is not set save as - 1 to database