/** * Get an entry for this item from the database * @param integer $itemId id of the entry to recover * @return array array of item data */ public function getItem($itemId) { $query = "SELECT * FROM todo WHERE list_item_id = {$itemId} ORDER BY due_date"; return Connect::getEntry($query); }