Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/page/lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Functions

 page_supports ($feature)
 page_get_extra_capabilities ()
 page_reset_userdata ($data)
 page_get_view_actions ()
 page_get_post_actions ()
 page_add_instance ($data, $mform)
 page_update_instance ($data, $mform)
 page_delete_instance ($id)
 page_user_outline ($course, $user, $mod, $page)
 page_user_complete ($course, $user, $mod, $page)
 page_get_participants ($pageid)
 page_get_coursemodule_info ($coursemodule)
 page_get_file_areas ($course, $cm, $context)
 page_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename)
 page_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload)
 page_extend_navigation ($navigation, $course, $module, $cm)
 page_page_type_list ($pagetype, $parentcontext, $currentcontext)
 page_export_contents ($cm, $baseurl)

Function Documentation

page_add_instance ( data,
mform 
)

Add page instance.

Parameters:
object$data
object$mform
Returns:
int new page instance id

Definition at line 88 of file lib.php.

Here is the call graph for this function:

Delete page instance.

Parameters:
int$id
Returns:
bool true

Definition at line 167 of file lib.php.

page_export_contents ( cm,
baseurl 
)

Export page resource contents

Returns:
array of file content

Definition at line 451 of file lib.php.

Here is the call graph for this function:

page_extend_navigation ( navigation,
course,
module,
cm 
)

This function extends the global navigation for the site. It is important to note that you should not rely on PAGE objects within this body of code as there is no guarantee that during an AJAX request they are available

Parameters:
navigation_node$navigationThe page node within the global navigation
stdClass$courseThe course object returned from the DB
stdClass$moduleThe module object returned from the DB
stdClass$cmThe course module instance returned from the DB

This is currently just a stub so that it can be easily expanded upon. When expanding just remove this comment and the line below and then add you content.

Definition at line 426 of file lib.php.

page_get_coursemodule_info ( coursemodule)

Given a course_module object, this function returns any "extra" information that may be needed when printing this activity in a course listing.

See get_array_of_activities() in course/lib.php

Parameters:
cm_info$coursemodule
Returns:
cached_cm_info Info to customise main page display

Definition at line 254 of file lib.php.

Here is the call graph for this function:

Returns all other caps used in module

Returns:
array

Definition at line 53 of file lib.php.

page_get_file_areas ( course,
cm,
context 
)

Lists all browsable file areas

Parameters:
object$course
object$cm
object$context
Returns:
array

Definition at line 293 of file lib.php.

page_get_file_info ( browser,
areas,
course,
cm,
context,
filearea,
itemid,
filepath,
filename 
)

File browsing support for page module content area.

Parameters:
object$browser
object$areas
object$course
object$cm
object$context
string$filearea
int$itemid
string$filepath
string$filename
Returns:
object file_info instance or null if not found

Definition at line 312 of file lib.php.

Here is the call graph for this function:

page_get_participants ( pageid)

Returns the users with data in one page

Todo:
: deprecated - to be deleted in 2.2
Parameters:
int$pageid
Returns:
bool false

Definition at line 240 of file lib.php.

List of update style log actions

Returns:
array

Definition at line 78 of file lib.php.

List of view style log actions

Returns:
array

Definition at line 70 of file lib.php.

page_page_type_list ( pagetype,
parentcontext,
currentcontext 
)

Return a list of page types

Parameters:
string$pagetypecurrent page type
stdClass$parentcontextBlock's parent context
stdClass$currentcontextCurrent context of block

Definition at line 441 of file lib.php.

page_pluginfile ( course,
cm,
context,
filearea,
args,
forcedownload 
)

Serves the page files.

Parameters:
object$course
object$cm
object$context
string$filearea
array$args
bool$forcedownload
Returns:
bool false if file not found, does not return if found - just send the file

Definition at line 354 of file lib.php.

Here is the call graph for this function:

page_reset_userdata ( data)

This function is used by the reset_course_userdata function in moodlelib.

Parameters:
$datathe data submitted from the reset course.
Returns:
array status array

Definition at line 62 of file lib.php.

page_supports ( feature)

List of features supported in Page module

Parameters:
string$featureFEATURE_xx constant for requested feature
Returns:
mixed True if module supports feature, false if not, null if doesn't know

Definition at line 32 of file lib.php.

page_update_instance ( data,
mform 
)

Update page instance.

Parameters:
object$data
object$mform
Returns:
bool true

Definition at line 128 of file lib.php.

Here is the call graph for this function:

page_user_complete ( course,
user,
mod,
page 
)

Return use complete

Parameters:
object$course
object$user
object$mod
object$page

Definition at line 214 of file lib.php.

Here is the call graph for this function:

page_user_outline ( course,
user,
mod,
page 
)

Return use outline

Parameters:
object$course
object$user
object$mod
object$page
Returns:
object|null

Definition at line 189 of file lib.php.

 All Data Structures Namespaces Files Functions Variables Enumerations