Moodle  2.2.1
http://www.collinsharper.com
lesson_page_type_endofcluster Class Reference
Inheritance diagram for lesson_page_type_endofcluster:
Collaboration diagram for lesson_page_type_endofcluster:

Public Member Functions

 display ($renderer, $attempt)
 get_typeid ()
 get_typestring ()
 get_idstring ()
 callback_on_view ($canmanage)
 redirect_to_next_page ()
 get_grayout ()
 update ($properties)
 override_next_page ()
 add_page_link ($previd)
 valid_page_and_view (&$validpages, &$pageviews)

Protected Attributes

 $type = lesson_page::TYPE_STRUCTURE
 $typeidstring = 'endofcluster'
 $typeid = LESSON_PAGE_ENDOFCLUSTER
 $string = null
 $jumpto = null

Detailed Description

Definition at line 32 of file endofcluster.php.


Member Function Documentation

add_page_link ( previd)

Can be set to true if the page requires a static link to create a new instance instead of simply being included in the dropdown

Parameters:
int$previd
Returns:
bool

Reimplemented from lesson_page.

Definition at line 121 of file endofcluster.php.

Here is the call graph for this function:

callback_on_view ( canmanage)

This is a callback method that can be override and gets called when ever a page is viewed

Parameters:
bool$canmanageTrue if the user has the manage cap
Returns:
mixed

Reimplemented from lesson_page.

Definition at line 55 of file endofcluster.php.

Here is the call graph for this function:

display ( renderer,
attempt 
)

This method gets called to display the page to the user taking the lesson

Parameters:
object$renderer
object$attempt
Returns:
string

Reimplemented from lesson_page.

Definition at line 40 of file endofcluster.php.

Determines if this page should be grayed out on the management/report screens

Returns:
int 0 or 1

Reimplemented from lesson_page.

Definition at line 68 of file endofcluster.php.

Definition at line 52 of file endofcluster.php.

This method should return the integer used to identify the page type within the database and throughout code. This maps back to the defines used in 1.x

Returns:
int

Reimplemented from lesson_page.

Definition at line 43 of file endofcluster.php.

This method should return the string that describes the pagetype

Returns:
string

Reimplemented from lesson_page.

Definition at line 46 of file endofcluster.php.

A callback method that allows a page to override the next page a user will see during when this page is being completed.

Returns:
false|int

Reimplemented from lesson_page.

Definition at line 108 of file endofcluster.php.

Here is the call graph for this function:

Definition at line 59 of file endofcluster.php.

Here is the call graph for this function:

Here is the caller graph for this function:

update ( properties)

Definition at line 71 of file endofcluster.php.

Here is the call graph for this function:

valid_page_and_view ( &$  validpages,
&$  pageviews 
)

This method is used to determine if this page is a valid page

Parameters:
array$validpages
array$pageviews
Returns:
int The next page id to check

Reimplemented from lesson_page.

Definition at line 129 of file endofcluster.php.

Here is the call graph for this function:


Field Documentation

$jumpto = null [protected]

Definition at line 38 of file endofcluster.php.

$string = null [protected]

Definition at line 37 of file endofcluster.php.

$type = lesson_page::TYPE_STRUCTURE [protected]

Reimplemented from lesson_page.

Definition at line 34 of file endofcluster.php.

$typeid = LESSON_PAGE_ENDOFCLUSTER [protected]

Definition at line 36 of file endofcluster.php.

$typeidstring = 'endofcluster' [protected]

Definition at line 35 of file endofcluster.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations