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);'); formattedPrint(get_class_byId_db($class->getId()), 'formattedPrint(get_class_byId_db($class->getId());'); formattedPrint(get_class_byNumber_db($class->number), 'formattedPrint(get_class_byNumber_db($class->number);'); } else { echo 'null'; } formattedPrint(get_all_classes_db(), "formattedPrint(get_all_classes_db());"); /** * * OTHER *
function getAllPostsForTag($tag) { return get_all_posts_db($this->number, $tag); }