title = $title; $this->description = $description; $this->due = $due; $this->priority = $priority; $this->link = $link; $this->createdAt = $createdAt; if ($id < 0) { $this->id = $id * -1; $stmt = 'INSERT INTO todo (id, space, title, description, due, priority, link) VALUES (?, ?, ?, ?, ?, ?, ?)'; exec_stmt($stmt, 'iisssiss', $this->id, $space, $title, $description, $due, $priority, $link); } else $this->id = $id; } public function getHTML() { $html = '