public static function last() { $row = parent::last(UserModel::get_table_name()); $um = new UserModel($row["date_created"], $row["first_name"], $row["last_name"], $row["email"], $row["password"], $row["last_login"], $row["failed_login_attempts"]); $um->id = $row["id"]; return $um; }
public static function last() { $row = parent::last(AdventureModel::get_table_name()); $am = new AdventureModel($row["title"], $row["user_id"], $row["date_created"]); $am->id = $row["id"]; return $am; }
public static function last() { $row = parent::last(PageModel::get_table_name()); $pm = new PageModel($row["page_text"], $row["adventure_id"], $row["image_url"], $row["date_created"]); $pm->id = $row["id"]; return $pm; }
public static function last() { $row = parent::last(QuestionModel::get_table_name()); $qm = new QuestionModel($row["page_id"], $row["q_and_a"], $row["date_created"]); $qm->id = $row["id"]; return $qm; }