repostedPostID = $row['RepostedPostID']; parent::__construct($row); } /************************************************************************** * CRUD Functions **************************************************************************/ public static function create($userID, $languageID, $text, $repostedPost) { $repostedPostID = $repostedPost->getID(); $newPostID = parent::create($userID, $languageID, $text, $repostedPost->getUrlScrapeID()); safe_dbwrite(" UPDATE tig.ProfilePosts SET RepostedPostID = $repostedPostID WHERE ID = $newPostID "); return $newPostID; } /************************************************************************** * Getters \ Setters **************************************************************************/ public function getRepostedPost() { return UrlPost::readByID($this->repostedPostID); } }