Class: Blog
Source Location: /main/inc/lib/blog.lib.php
Blog class Contains several functions dealing with displaying, editing,... of a blog
Author(s):
Version:
|
|
Class Details
Class Methods
method add_rating [line 888]
Boolean add_rating(
String
$type, Integer
$blog_id, Integer
$item_id, Integer
$rating)
|
|
Adds rating to a certain post or comment
Tags:
Parameters:
method assign_task [line 1844]
void assign_task(
Integer
$blog_id, Integer
$user_id, Integer
$task_id, Date
$target_date)
|
|
Assigns a task to a user in a blog
Parameters:
method change_blog_visibility [line 635]
void change_blog_visibility(
Integer
$blog_id)
|
|
Changes the visibility of a blog
Tags:
Parameters:
method create_blog [line 136]
void create_blog(
String
$title,
$subtitle, Integer
$course_id, Text
$description)
|
|
Creates a new blog in the given course
Tags:
Parameters:
method create_comment [line 329]
void create_comment(
String
$title, String
$full_text, Integer
$blog_id, Integer
$post_id, Integer
$parent_id, [
$task_id = 'NULL'])
|
|
Creates a comment on a post in a given blog
Tags:
Parameters:
method create_post [line 248]
void create_post(
String
$title, String
$full_text, Integer
$blog_id)
|
|
Creates a new post in a given blog
Tags:
Parameters:
method create_task [line 395]
void create_task(
Integer
$blog_id, String
$title, String
$description,
$articleDelete,
$articleEdit,
$commentsDelete, String
$color)
|
|
Creates a new task in a blog
Tags:
Parameters:
method delete_assigned_task [line 568]
void delete_assigned_task(
Integer
$blog_id, Integer
$assignment_id)
|
|
Deletes an assigned task from a blog
Parameters:
method delete_blog [line 206]
void delete_blog(
Integer
$blog_id)
|
|
Deletes a blog and it's posts from the course database
Tags:
Parameters:
method delete_comment [line 357]
void delete_comment(
Integer
$blog_id, Integer
$comment_id)
|
|
Deletes a comment from a blogpost
Tags:
Parameters:
method delete_post [line 295]
void delete_post(
Integer
$blog_id, Integer
$post_id)
|
|
Deletes an article and it's comments
Tags:
Parameters:
method delete_task [line 550]
void delete_task(
Integer
$blog_id, Integer
$task_id)
|
|
Deletes a task from a blog
Parameters:
method display_assigned_task_list [line 1331]
void display_assigned_task_list(
Integer
$blog_id)
|
|
Displays a list of tasks assigned to a user in this blog
Tags:
Parameters:
method display_assign_task_form [line 1556]
void display_assign_task_form(
$blog_id)
|
|
Displays assign task form
Tags:
Parameters:
method display_blog_list [line 2529]
void display_blog_list(
)
|
|
Blog admin | Returns table with blogs in this course
method display_blog_posts [line 678]
void display_blog_posts(
Integer
$blog_id, [
$filter = '1=1'], [
$max_number_of_posts = 20])
|
|
Shows the posts of a blog
Tags:
Parameters:
method display_day_results [line 788]
void display_day_results(
Integer
$blog_id, String
$query_string)
|
|
Display posts from a certain date
Parameters:
method display_edit_assigned_task_form [line 1677]
void display_edit_assigned_task_form(
$blog_id,
$assignment_id)
|
|
Displays assign task form
Tags:
Parameters:
method display_edit_blog_form [line 2492]
void display_edit_blog_form(
$blog_id)
|
|
Blog admin | Display the form to edit a blog.
Parameters:
method display_edit_task_form [line 1461]
void display_edit_task_form(
$blog_id,
$task_id)
|
|
Displays edit task form
Tags:
Parameters:
method display_form_edit_post [line 1194]
void display_form_edit_post(
Integer
$blog_id,
$post_id)
|
|
Displays the form to edit a post
Tags:
Parameters:
method display_form_new_post [line 1060]
void display_form_new_post(
Integer
$blog_id)
|
|
Displays the form to create a new post
Tags:
Parameters:
method display_form_user_rights [line 2224]
void display_form_user_rights(
Integer
$blog_id)
|
|
Displays a matrix with selectboxes. On the left: users, on top: possible rights. The blog admin can thus select what a certain user can do in the current blog
Parameters:
method display_form_user_subscribe [line 2016]
Html display_form_user_subscribe(
Integer
$blog_id)
|
|
Displays the form to register users in a blog (in a course) The listed users are users subcribed in the course.
Tags:
Parameters:
method display_form_user_unsubscribe [line 2122]
Html display_form_user_unsubscribe(
Integer
$blog_id)
|
|
Displays the form to register users in a blog (in a course) The listed users are users subcribed in the course.
Tags:
Parameters:
method display_minimonthcalendar [line 2311]
html display_minimonthcalendar(
$month,
$year,
$blog_id, Array
$blogitems, Integer
$month:, Integer
$year:, String
$monthName:)
|
|
show the calender of the given month
Tags:
Parameters:
method display_new_blog_form [line 2462]
void display_new_blog_form(
)
|
|
Blog admin | Display the form to add a new blog.
method display_new_comment_form [line 2242]
void display_new_comment_form(
Integer
$blog_id,
$post_id,
$title)
|
|
Displays the form to create a new post
Tags:
Parameters:
method display_new_task_form [line 1389]
void display_new_task_form(
$blog_id)
|
|
Displays new task form
Tags:
Parameters:
method display_post [line 810]
void display_post(
Integer
$blog_id, Integer
$post_id)
|
|
Displays a post and his comments
Parameters:
method display_rating [line 917]
void display_rating(
$type,
$blog_id,
$item_id)
|
|
Parameters:
method display_rating_form [line 937]
void display_rating_form(
String
$type, Integer
$blog_id,
$post_id, [
$comment_id = NULL], Integer
$item_id)
|
|
Shows the rating form if not already rated by that user
Tags:
Parameters:
method display_search_results [line 766]
void display_search_results(
Integer
$blog_id, String
$query_string)
|
|
Display the search results
Parameters:
method display_select_task_post [line 1921]
void display_select_task_post(
Integer
$blog_id, unknown_type
$task_id)
|
|
Displays a list with posts a user can select to execute his task.
Parameters:
method display_task_list [line 1259]
void display_task_list(
Integer
$blog_id)
|
|
Displays a list of tasks in this blog
Tags:
Parameters:
method edit_assigned_task [line 1879]
void edit_assigned_task(
$blog_id,
$user_id,
$task_id,
$target_date,
$old_user_id,
$old_task_id,
$old_target_date)
|
|
Parameters:
method edit_blog [line 178]
void edit_blog(
$blog_id, String
$title,
$subtitle, Integer
$course_id, Text
$description)
|
|
Update title and subtitle of a blog in the given course
Tags:
Parameters:
method edit_post [line 274]
void edit_post(
$post_id, String
$title, String
$full_text, Integer
$blog_id)
|
|
Edits a post in a given blog
Tags:
Parameters:
method edit_task [line 471]
void edit_task(
$blog_id, Integer
$task_id, String
$title, String
$description,
$articleDelete,
$articleEdit,
$commentsDelete, String
$color)
|
|
Edit a task in a blog
Tags:
Parameters:
method get_blog_subtitle [line 78]
String get_blog_subtitle(
Integer
$blog_id)
|
|
Get the description of a blog
Tags:
Parameters:
method get_blog_title [line 50]
String get_blog_title(
Integer
$blog_id)
|
|
Get the title of a blog
Tags:
Parameters:
method get_blog_users [line 98]
Array get_blog_users(
Integer
$blog_id)
|
|
Get the users of a blog
Tags:
Parameters:
method get_personal_task_list [line 589]
Returns get_personal_task_list(
)
|
|
Get personal task list
Tags:
method get_threaded_comments [line 992]
void get_threaded_comments(
[Integer
$current = 0], [Integer
$current_level = 0], Integer
$blog_id, Integer
$post_id, [
$task_id = 0])
|
|
This functions gets all replys to a post, threaded.
Parameters:
method set_user_subscribed [line 1968]
void set_user_subscribed(
Integer
$blog_id, Integer
$user_id)
|
|
Subscribes a user to a given blog
Tags:
Parameters:
method set_user_unsubscribed [line 1992]
void set_user_unsubscribed(
Integer
$blog_id, Integer
$user_id)
|
|
Unsubscribe a user from a given blog
Tags:
Parameters:
|
|