Prado\I18N\core\MessageSource_Database::getLastModified PHP Method

getLastModified() protected method

We need to query the database to get the date_modified.
protected getLastModified ( $source ) : integer
return integer last modified in unix-time format.
    protected function getLastModified($source)
    {
        $command = $this->getDBConnection()->createCommand('SELECT date_modified FROM catalogue WHERE name = :source');
        $command->bindParameter(':source', $source, PDO::PARAM_STR);
        $result = $command->queryScalar();
        return $result ? $result : 0;
    }