Source Location: /mooan_handle_request.php
void is_last_message(
$comment, $message)
[line 386]
Tests if a given message is the last reply in a given comment tree.
[ Top ]
void is_last_messageX(
$comment, $message)
[line 584]
Tests if a given message is the last reply in a given comment tree.
[ Top ]
void mooan_add_big_view(
&$htmlpage)
[line 689]
Creates a view for "suurennettu" (big)
[ Top ]
void mooan_add_init(
&$htmlpage)
[line 770]
Adds a javascript functionality to the body element.
[ Top ]
void mooan_add_javascript(
&$htmlpage)
[line 756]
Adds javascript functionality to the content element
[ Top ]
void mooan_add_new_comment_view(
&$htmlpage)
[line 655]
Adds a 'new comment view' to the page
[ Top ]
void mooan_add_reply_view(
&$htmlpage)
[line 713]
Creates a view for replying.
[ Top ]
void mooan_create_comment_messages(
$comment, $message, $rights, $userid, $even)
[line 522]
Returns the view of a given message and its replies, replies's replies and so on.
The parameter $even is a boolean value which tells what kind of class this message element uses. The value changes everytime we go deeper in the recursion.
$commentid is the id of the comment where this message belongs to.
[ Top ]
void mooan_create_comment_type_selector(
&$htmlpage)
[line 807]
Adds a comment type selector
[ Top ]
void mooan_create_comment_view(
$comment, $rights, $userid)
[line 431]
Goes through a given comment and creates html elements according to a specific syntax.
The first message in each comment is special and, therefore, will be handled differently than other messages (if there are more).
The parameter $comment is of type MooanMessageData and has the following attributes: $id; A Unique id. $creator; Name of the creator of this message. $date; Whn last modified in W3C date format. $content; Content of the message. $position; XPointer location if this is a comment. $category; Category of the comment, if this is a comment. $replies MooanMessageData objects representing replies to this message.
[ Top ]
void mooan_create_comment_views(
$comments, $rights, $userid)
[line 127]
Creates a comment view for each comment in the document.
[ Top ]
void mooan_create_header_rows(
&$htmlpage)
[line 780]
Adds header rows telling where to fetch all required js and css files.
[ Top ]
void mooan_create_indicator(
&$htmlpage)
[line 835]
Adds a hidden element that pops up when something is added to the db.
[ Top ]
void mooan_create_top_banner(
&$htmlpage, $rights, $status)
[line 613]
Prints the Mooan banner at the top of a page that's being modified
[ Top ]
void mooan_create_view_pane(
&$htmlpage)
[line 850]
Creates and adds a comment view pane to the htmlpage
[ Top ]
void mooan_is_owner(
$id, $user)
[line 118]
This function checks the ownership between a user and a comment/message It returns a boolean value, true if given user is the creator.
[ Top ]
void mooan_modify_page(
$htmlpage, $documentid, $userid)
[line 34]
This function gets a parsed dom-tree from mooan_moodle_interface as a parameter. The function modifies it and returns it to the www-server.
[ Top ]
void mooan_parse_timestamp(
$stamp)
[line 147]
****************************************\
[ Top ]
void test_create_comment_messages(
$comment, $message, $rights, $userid, $depth, $firstchild)
[line 266]
Returns the view of a given message and its replies, replies's replies and so on.
The parameter $even is a boolean value which tells what kind of class this message element uses. The value changes everytime we go deeper in the recursion.
$commentid is the id of the comment where this message belongs to.
[ Top ]
void test_create_comment_view(
$comment, $rights, $userid)
[line 172]
[ Top ]
void test_create_comment_views(
$comments, $rights, $userid)
[line 156]
[ Top ]