mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 21:44:59 +00:00
add findLastHostPageDomBySelector method
This commit is contained in:
parent
0b4abd2b50
commit
175209813f
@ -640,6 +640,17 @@ class MySQL {
|
||||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function findLastHostPageDomBySelector(int $hostPageId, string $selector) {
|
||||
|
||||
$this->_debug->query->select->total++;
|
||||
|
||||
$query = $this->_db->prepare('SELECT * FROM `hostPageDom` WHERE `hostPageId` = ? AND `selector` = ? ORDER BY `timeAdded` DESC LIMIT 1');
|
||||
|
||||
$query->execute([$hostPageId, $selector]);
|
||||
|
||||
return $query->fetch();
|
||||
}
|
||||
|
||||
public function truncateHostPageDom() {
|
||||
|
||||
$query = $this->_db->query('TRUNCATE `hostPageDom`');
|
||||
|
Loading…
x
Reference in New Issue
Block a user