_sTableData = $aParams['table_data'] ?? ''; } public function getLocal ($sUrl, $sTheme) { return $this->getOne("SELECT `data` FROM `" . $this->_sTableData . "` WHERE `url` = :url AND `theme` = :theme", [ 'url' => $sUrl, 'theme' => $sTheme ]); } public function insertLocal ($sUrl, $sTheme, $sData = '') { return (int)$this->query("INSERT INTO `" . $this->_sTableData . "` (`url`, `theme`, `data`, `added`) VALUES (:url, :theme, :data, :added)", [ 'url' => $sUrl, 'theme' => $sTheme, 'data' => $sData, 'added' => time(), ]) > 0; } public function updateLocal ($sUrl, $sTheme, $sData = '') { return (int)$this->query("UPDATE `" . $this->_sTableData . "` SET `data` = :data WHERE `url` = :url AND `theme` = :theme", [ 'url' => $sUrl, 'theme' => $sTheme, 'data' => $sData ]) > 0; } } /** @} */