Procedural File: mooan_moodle_interface.php

Source Location: /mooan_moodle_interface.php



Classes:

Page Details:

Library of functions for interfacing with Moodle.

Tags:





mooan_get_current_document_id

string mooan_get_current_document_id( )

[line 107]

Returns the request portion of the URI that was used to retrieve this document.

Tags:

  • return - The output of Moodle qualified_me() function

Parameters

[ Top ]

mooan_get_current_user_id

The mooan_get_current_user_id( )

[line 140]

Determines the userid of the current user and returns in in "serialised" form: numericalid:fullname

Tags:

  • return - current user's ID for use in Mooan code, or false if the user has not logged in
  • uses - $USER

Parameters

[ Top ]

mooan_output_buffering_end

void mooan_output_buffering_end( )

[line 86]

Ends output buffering if the same checks as were run in mooan_output_buffering_start() before starting it pass.

Passes the captured document to mooan_modify_page() for handling.

Parameters

[ Top ]

mooan_output_buffering_start

void mooan_output_buffering_start( )

[line 64]

Starts output buffering if the current document is annotable or if it's not annotable but the current user has the rights to turn it on.

Tags:

  • uses - CFG

Parameters

[ Top ]

mooan_parse_user_id

mixed mooan_parse_user_id( $userid)

[line 158]

Parses the numerical id and the user's fullname out of an userid generated by mooan_get_current_user_id().

Tags:

  • return - False on failure, an associative array containing 'id' => numerical user id 'name' => user full name

Parameters

  • $userid -

[ Top ]


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