Procedural File: mooan_handle_request.php

Source Location: /mooan_handle_request.php



Classes:

Page Details:

Tags:





is_last_message

void is_last_message( $comment, $message)

[line 386]

Tests if a given message is the last reply in a given comment tree.

Parameters

  • $comment -
  • $message -

[ Top ]

is_last_messageX

void is_last_messageX( $comment, $message)

[line 584]

Tests if a given message is the last reply in a given comment tree.

Parameters

  • $comment -
  • $message -

[ Top ]

mooan_add_big_view

void mooan_add_big_view( &$htmlpage)

[line 689]

Creates a view for "suurennettu" (big)

Parameters

  • &$htmlpage -

[ Top ]

mooan_add_init

void mooan_add_init( &$htmlpage)

[line 770]

Adds a javascript functionality to the body element.

Parameters

  • &$htmlpage -

[ Top ]

mooan_add_javascript

void mooan_add_javascript( &$htmlpage)

[line 756]

Adds javascript functionality to the content element

Parameters

  • &$htmlpage -

[ Top ]

mooan_add_new_comment_view

void mooan_add_new_comment_view( &$htmlpage)

[line 655]

Adds a 'new comment view' to the page

Parameters

  • &$htmlpage -

[ Top ]

mooan_add_reply_view

void mooan_add_reply_view( &$htmlpage)

[line 713]

Creates a view for replying.

Parameters

  • &$htmlpage -

[ Top ]

mooan_create_comment_messages

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.

Parameters

  • $comment -
  • $message -
  • $rights -
  • $userid -
  • $even -

[ Top ]

mooan_create_comment_type_selector

void mooan_create_comment_type_selector( &$htmlpage)

[line 807]

Adds a comment type selector

Parameters

  • &$htmlpage -

[ Top ]

mooan_create_comment_view

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.

Parameters

  • $comment -
  • $rights -
  • $userid -

[ Top ]

mooan_create_comment_views

void mooan_create_comment_views( $comments, $rights, $userid)

[line 127]

Creates a comment view for each comment in the document.

Parameters

  • $comments -
  • $rights -
  • $userid -

[ Top ]

mooan_create_header_rows

void mooan_create_header_rows( &$htmlpage)

[line 780]

Adds header rows telling where to fetch all required js and css files.

Parameters

  • &$htmlpage -

[ Top ]

mooan_create_indicator

void mooan_create_indicator( &$htmlpage)

[line 835]

Adds a hidden element that pops up when something is added to the db.

Parameters

  • &$htmlpage -

[ Top ]

mooan_create_top_banner

void mooan_create_top_banner( &$htmlpage, $rights, $status)

[line 613]

Prints the Mooan banner at the top of a page that's being modified

Parameters

  • &$htmlpage -
  • $rights -
  • $status -

[ Top ]

mooan_create_view_pane

void mooan_create_view_pane( &$htmlpage)

[line 850]

Creates and adds a comment view pane to the htmlpage

Parameters

  • &$htmlpage -

[ Top ]

mooan_is_owner

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.

Parameters

  • $id -
  • $user -

[ Top ]

mooan_modify_page

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.

Parameters

  • $htmlpage -
  • $documentid -
  • $userid -

[ Top ]

mooan_parse_timestamp

void mooan_parse_timestamp( $stamp)

[line 147]

****************************************\

Parameters

  • $stamp -

[ Top ]

test_create_comment_messages

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.

Parameters

  • $comment -
  • $message -
  • $rights -
  • $userid -
  • $depth -
  • $firstchild -

[ Top ]

test_create_comment_view

void test_create_comment_view( $comment, $rights, $userid)

[line 172]

Parameters

  • $comment -
  • $rights -
  • $userid -

[ Top ]

test_create_comment_views

void test_create_comment_views( $comments, $rights, $userid)

[line 156]

Parameters

  • $comments -
  • $rights -
  • $userid -

[ Top ]


Documentation generated on Tue, 06 Feb 2007 13:09:11 +0200 by phpDocumentor 1.3.0RC6