名前空間の参照ちょっと修正
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ Response
|
||||
{
|
||||
public static function
|
||||
fetch_all (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
int $thread_id)
|
||||
: array
|
||||
{
|
||||
@@ -59,7 +59,7 @@ Response
|
||||
|
||||
public static function
|
||||
like (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
int $thread_id,
|
||||
int $response_id)
|
||||
: void
|
||||
@@ -79,7 +79,7 @@ Response
|
||||
|
||||
public static function
|
||||
dislike (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
int $thread_id,
|
||||
int $response_id)
|
||||
: void
|
||||
|
||||
+8
-4
@@ -8,7 +8,7 @@ Thread
|
||||
{
|
||||
public static function
|
||||
fetch_all (
|
||||
SQLite3 $db)
|
||||
\SQLite3 $db)
|
||||
: array
|
||||
{
|
||||
$sql = "
|
||||
@@ -53,7 +53,7 @@ Thread
|
||||
|
||||
public static function
|
||||
find (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
int $id)
|
||||
: ?\Dto\Thread
|
||||
{
|
||||
@@ -77,6 +77,10 @@ Thread
|
||||
latest DESC";
|
||||
|
||||
$result = $db -> query ($sql);
|
||||
|
||||
if ($row === false)
|
||||
return null;
|
||||
|
||||
$row = $result -> fetchArray (SQLITE3_ASSOC);
|
||||
|
||||
if ($row === false)
|
||||
@@ -95,7 +99,7 @@ Thread
|
||||
|
||||
public static function
|
||||
create_thread (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
string $title,
|
||||
string $explain)
|
||||
: void
|
||||
@@ -106,7 +110,7 @@ Thread
|
||||
|
||||
public static function
|
||||
delete_thread (
|
||||
SQLite3 $db,
|
||||
\SQLite3 $db,
|
||||
int $id)
|
||||
: void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user