mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
21 lines
572 B
PHP
21 lines
572 B
PHP
<?php
|
|
|
|
namespace Gazelle\Manager;
|
|
|
|
/* Conversation thread, allows private staff notes intermingled
|
|
* with the public notes that both staff and member can see.
|
|
* A collection of notes is called a story.
|
|
*/
|
|
|
|
class Thread extends \Gazelle\Base {
|
|
public function createThread($type): \Gazelle\Thread {
|
|
self::$db->prepared_query("
|
|
INSERT INTO thread (ThreadTypeID) VALUES (
|
|
(SELECT ID FROM thread_type WHERE Name = ?)
|
|
)
|
|
", $type
|
|
);
|
|
return new \Gazelle\Thread(self::$db->inserted_id());
|
|
}
|
|
}
|