Prado\I18N\core\MessageSource_Database::getLastModified PHP Метод

getLastModified() защищенный Метод

We need to query the database to get the date_modified.
protected getLastModified ( $source ) : integer
Результат 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;
    }