/** * Creates Comment object and calls store function * @param $userID * @param $commentMsg * @param $pageID */ public function leaveComment($userID, $commentMsg, $pageID) { $comment = new Comment($userID, $commentMsg, $pageID); $comment->store(); }