Prado\I18N\core\MessageSource_SQLite::getLastModified PHP Méthode

getLastModified() protected méthode

We need to query the database to get the date_modified.
protected getLastModified ( $source ) : integer
Résultat integer last modified in unix-time format.
    protected function getLastModified($source)
    {
        $source = sqlite_escape_string($source);
        $db = sqlite_open($this->source);
        $rs = sqlite_query("SELECT date_modified FROM catalogue WHERE name = '{$source}'", $db);
        $result = $rs ? (int) sqlite_fetch_single($rs) : 0;
        sqlite_close($db);
        return $result;
    }