Browse Source

change method name

main
ghost 1 year ago
parent
commit
0ea665f6e7
  1. 4
      cli/yggo.php
  2. 2
      library/mysql.php
  3. 2
      public/file.php

4
cli/yggo.php

@ -130,7 +130,7 @@ switch ($argv[1]) { @@ -130,7 +130,7 @@ switch ($argv[1]) {
$snapFilesExists = true;
if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) {
@ -158,7 +158,7 @@ switch ($argv[1]) { @@ -158,7 +158,7 @@ switch ($argv[1]) {
$snapFilesExists = true;
if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) {

2
library/mysql.php

@ -559,7 +559,7 @@ class MySQL { @@ -559,7 +559,7 @@ class MySQL {
return $this->_db->lastInsertId();
}
public function getHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) {
public function findHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) {
$query = $this->_db->prepare('SELECT * FROM `hostPageSnapStorage` WHERE `hostPageSnapId` = ? AND `crc32name` = ?');

2
public/file.php

@ -63,7 +63,7 @@ switch ($type) { @@ -63,7 +63,7 @@ switch ($type) {
// Generate storage id
$crc32name = crc32(sprintf('%s.%s', $name, $i));
if ($hostPageSnapStorage = $db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($hostPageSnapStorage = $db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
switch ($name) {

Loading…
Cancel
Save