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

updateCatalogueTime() private method

Update the catalogue last modified time.
private updateCatalogueTime ( $cat_id, $variant ) : boolean
return boolean true if updated, false otherwise.
    private function updateCatalogueTime($cat_id, $variant)
    {
        $time = time();
        $command = $this->getDBConnection()->createCommand('UPDATE catalogue SET date_modified = :moddate WHERE cat_id = :catid');
        $command->bindParameter(':moddate', $time, PDO::PARAM_INT);
        $command->bindParameter(':catid', $cat_id, PDO::PARAM_INT);
        $result = $command->execute();
        if (!empty($this->cache)) {
            $this->cache->clean($variant, $this->culture);
        }
        return $result;
    }