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

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Enumerations

enum  LABEL_MAX_NAME_LENGTH

Functions

 get_label_name ($label)
 label_add_instance ($label)
 label_update_instance ($label)
 label_delete_instance ($id)
 label_get_participants ($labelid)
 label_get_coursemodule_info ($coursemodule)
 label_get_view_actions ()
 label_get_post_actions ()
 label_reset_userdata ($data)
 label_get_extra_capabilities ()
 label_supports ($feature)

Enumeration Type Documentation

LABEL_MAX_NAME_LENGTH = 50

Definition at line 30 of file lib.php.


Function Documentation

get_label_name ( label)

LABEL_MAX_NAME_LENGTH

Parameters:
object$label
Returns:
string

Definition at line 37 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

label_add_instance ( label)

Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will create a new instance and return the id number of the new instance.

object

Parameters:
object$label
Returns:
bool|int

Definition at line 62 of file lib.php.

Here is the call graph for this function:

Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.

object

Parameters:
int$id
Returns:
bool

Definition at line 99 of file lib.php.

label_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

object

Parameters:
object$coursemodule
Returns:
object|null

Definition at line 138 of file lib.php.

Here is the call graph for this function:

Returns all other caps used in module

Returns:
array

Definition at line 186 of file lib.php.

label_get_participants ( labelid)

Returns the users with data in one resource (NONE, but must exist on EVERY mod !!)

Todo:
: deprecated - to be deleted in 2.2
Parameters:
int$labelid

Definition at line 123 of file lib.php.

Returns:
array

Definition at line 167 of file lib.php.

Returns:
array

Definition at line 160 of file lib.php.

label_reset_userdata ( data)

This function is used by the reset_course_userdata function in moodlelib.

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

Definition at line 177 of file lib.php.

label_supports ( feature)

FEATURE_IDNUMBER FEATURE_GROUPS FEATURE_GROUPINGS FEATURE_GROUPMEMBERSONLY FEATURE_MOD_INTRO FEATURE_COMPLETION_TRACKS_VIEWS FEATURE_GRADE_HAS_GRADE FEATURE_GRADE_OUTCOMES

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

Definition at line 202 of file lib.php.

label_update_instance ( label)

Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will update an existing instance with new data.

object

Parameters:
object$label
Returns:
bool

Definition at line 80 of file lib.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations