mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Continue fleshing out project management system
This commit is contained in:
parent
657ecc68d4
commit
051e286a6d
19 changed files with 420 additions and 108 deletions
26
lib/ProjectReminder.php
Normal file
26
lib/ProjectReminder.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?
|
||||
use Safe\DateTimeImmutable;
|
||||
|
||||
class ProjectReminder{
|
||||
public int $ProjectId;
|
||||
public DateTimeImmutable $Created;
|
||||
public Enums\ProjectReminderType $Type;
|
||||
|
||||
public function Create(): void{
|
||||
$this->Created = NOW;
|
||||
Db::Query('
|
||||
INSERT
|
||||
into ProjectReminders
|
||||
(
|
||||
ProjectId,
|
||||
Created,
|
||||
Type
|
||||
)
|
||||
values(
|
||||
?,
|
||||
?,
|
||||
?
|
||||
)
|
||||
', [$this->ProjectId, $this->Created, $this->Type]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue