Prado\I18N\core\MessageSource_MySQL::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)
    {
        $source = mysql_real_escape_string($source);
        $rs = mysql_query("SELECT date_modified FROM catalogue WHERE name = '{$source}'", $this->db);
        $result = $rs ? (int) mysql_result($rs, 0) : 0;
        return $result;
    }