Elgg\UpgradeService::getUpgradeFileVersion PHP Method

getUpgradeFileVersion() protected method

Returns the version of the upgrade filename.
Since: 1.8.0
protected getUpgradeFileVersion ( string $filename ) : integer | false
$filename string The upgrade filename. No full path.
return integer | false
    protected function getUpgradeFileVersion($filename)
    {
        preg_match('/^([0-9]{10})([\\.a-z0-9-_]+)?\\.(php)$/i', $filename, $matches);
        if (isset($matches[1])) {
            return (int) $matches[1];
        }
        return false;
    }