This website works better with JavaScript.
Home
Explore
Register
Sign In
miteruzo
/
kekec_bbs
Watch
1
Star
0
Fork
0
Code
Issues
4
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
スレッドの削除 DAO 追加
sqlite
みてるぞ
9 months ago
parent
efa4ceedf8
commit
34859e55b3
1 changed files
with
27 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+27
-2
daos/thread.php
+ 27
- 2
daos/thread.php
View File
@@ -6,8 +6,8 @@ namespace Dao;
class
Thread
{
public function
get
_threads (
public
static
function
fetch
_threads (
SQLite3 $db)
: array
{
@@ -49,5 +49,30 @@ Thread
return $therads;
}
public static function
create_thread (
SQLite3 $db,
string $title,
string $explain)
: void
{
;
}
public static function
delete_thread (
SQLite3 $db,
int $id)
: void
{
$db -> query ("
DELETE FROM
threads
WHERE
id = $id");
}
}
Write
Preview
Loading…
Cancel
Save