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

Public Member Functions

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

Protected Attributes

 $type = lesson_page::TYPE_STRUCTURE
 $typeidstring = 'endofbranch'
 $typeid = LESSON_PAGE_ENDOFBRANCH
 $string = null
 $jumpto = null

Detailed Description

Definition at line 32 of file endofbranch.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 139 of file endofbranch.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 endofbranch.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 endofbranch.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 99 of file endofbranch.php.

Definition at line 52 of file endofbranch.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 endofbranch.php.

This method should return the string that describes the pagetype

Returns:
string

Reimplemented from lesson_page.

Definition at line 46 of file endofbranch.php.

redirect_to_first_answer ( canmanage)

Definition at line 60 of file endofbranch.php.

Here is the call graph for this function:

Here is the caller graph for this function:

update ( properties)

Definition at line 102 of file endofbranch.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 147 of file endofbranch.php.

Here is the call graph for this function:


Field Documentation

$jumpto = null [protected]

Definition at line 38 of file endofbranch.php.

$string = null [protected]

Definition at line 37 of file endofbranch.php.

$type = lesson_page::TYPE_STRUCTURE [protected]

Reimplemented from lesson_page.

Definition at line 34 of file endofbranch.php.

$typeid = LESSON_PAGE_ENDOFBRANCH [protected]

Definition at line 36 of file endofbranch.php.

$typeidstring = 'endofbranch' [protected]

Definition at line 35 of file endofbranch.php.


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