mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
I need those constants a bit more easily accessible.
This commit is contained in:
parent
7221d319be
commit
8bd3fad303
@ -106,6 +106,12 @@ define('PARAM_URL', 0x0080);
|
||||
define('PARAM_LOCALURL',0x0180); // NOT orthogonal to the others! Implies PARAM_URL!
|
||||
define('PARAM_CLEANFILE',0x0200);
|
||||
|
||||
/**
|
||||
* Definition of page types
|
||||
*/
|
||||
define('PAGE_COURSE_VIEW', 'course-view');
|
||||
define('PAGE_QUIZ_VIEW', 'mod-quiz-view');
|
||||
|
||||
/// PARAMETER HANDLING ////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
@ -19,14 +19,6 @@ if(record_exists('block_instance', 'pagetype', 'course')) {
|
||||
}
|
||||
// End of dirty compatibility hack -- remove this before 1.5 goes gold
|
||||
|
||||
/// Constants
|
||||
|
||||
/**
|
||||
* Definition of course page type.
|
||||
*/
|
||||
define('PAGE_COURSE_VIEW', 'course-view');
|
||||
define('PAGE_QUIZ_VIEW', 'mod-quiz-view');
|
||||
|
||||
/**
|
||||
* Factory function page_create_object(). Called with a pagetype identifier and possibly with
|
||||
* its numeric ID. Returns a fully constructed page_base subclass you can work with.
|
||||
|
Loading…
x
Reference in New Issue
Block a user