} else { echo 'null'; } // get_all_media_db($class, $postId, $taId, $rating, $ratingComp); formattedPrint(get_all_media_db("1332", 1, 0, 0, 0), "get_all_media_db('1332', 1, 0, 0, 0);"); formattedPrint(get_all_media_db("1332", 0, 1, 0, 0), "get_all_media_db('1332', 0, 1, 0, 0);"); echo "<pre>\n\t--\n\t *\n\t * COMMENT\n\t *\n\t -\n\t</pre>"; $comment = create_comment_db(new OdComment(-1, 1, 1, 0, 'This is a sample comment with embedded <i>html</i>.'), '1332'); if ($comment) { formattedPrint($comment, 'formattedPrint($comment);'); formattedPrint(get_media_byId_db($comment->getId(), '1332'), 'formattedPrint(get_media_byId($comment->getId()));'); } else { echo 'null'; } formattedPrint(get_all_comments_db("1332", 1, 0, 0, 0), "get_all_comments_db('1332', 1, 0, 0, 0);"); formattedPrint(get_all_comments_db("1332", 0, 1, 0, 0), "get_all_comments_db('1332', 0, 1, 0, 0);"); echo "<pre>\n\t--\n\t *\n\t * POST\n\t *\n\t -\n\t</pre>"; $post = create_post_db(new OdPost(-1, "Sample Post", "Sample Description", $ta->getId(), "Insertion"), '1332'); if ($post) { formattedPrint($post, 'formattedPrint($post);'); formattedPrint(get_media_byId_db($post->getId(), '1332'), 'formattedPrint(get_media_byId($post->getId()));'); } else { echo 'null'; } formattedPrint(get_all_posts_db("1332", "Insertion"), "get_all_posts_db('1332', 'Insertion');"); formattedPrint(get_all_posts_db("1332", "Removal"), "get_all_posts_db('1332', 'Removal');"); echo "<pre>\n\t--\n\t *\n\t * CLASS\n\t *\n\t -\n\t</pre>"; $number = 1332; $class = create_class_db(new OdClass(-1, "CS", $number, "Random Class", "Brand new!!! Take Now!!!")); if ($class) { formattedPrint($class, 'formattedPrint($class);');
function getAllComments($classNumber) { return get_all_comments_db($classNumber, $this->id, $this->taid); }