Class for manipulating with the template records.
More...
|
| __construct () |
| region_manager constructor.
|
|
| execute ($action) |
| Execute required action.
|
|
|
const | ACTION_ADD = 'add' |
| Add action.
|
|
const | ACTION_DELETE = 'delete' |
| Delete action.
|
|
const | ACTION_EDIT = 'edit' |
| Edit action.
|
|
const | ACTION_HIDE = 'hide' |
| Hide action.
|
|
const | ACTION_SHOW = 'show' |
| Show action.
|
|
const | ACTION_VIEW = 'view' |
| View action.
|
|
|
| delete ($id) |
| Execute delete action.
|
|
| display_all_records () |
| Print out all records in a table.
|
|
| edit ($action, $id=null) |
| Execute edit action.
|
|
| footer () |
| Print out the page footer.
|
|
| get_create_button_text () |
| Returns a text for create new record button.
|
|
| get_edit_heading () |
| Edit record heading string.
|
|
| get_form ($instance) |
| Returns form for the record.
|
|
| get_instance ($id=0, stdClass $data=null) |
| Return record instance.
|
|
| get_new_heading () |
| New record heading string.
|
|
| get_view_heading () |
| View page heading string.
|
|
| header ($title) |
| Print out page header.
|
|
| hide ($id) |
| Hide the template.
|
|
| print_add_button () |
| Print out add button.
|
|
| set_external_page () |
| Set external page for the manager.
|
|
| show (int $id) |
| Show the template.
|
|
| show_hide (int $id, int $visibility) |
| Show or Hide the template.
|
|
| view () |
| Execute view action.
|
|
Class for manipulating with the template records.
- Copyright
- 2020 Catalyst IT
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete()
quizaccess_seb\template_controller::delete |
( |
| $id | ) |
|
|
protected |
Execute delete action.
- Parameters
-
◆ edit()
quizaccess_seb\template_controller::edit |
( |
| $action, |
|
|
| $id = null ) |
|
protected |
Execute edit action.
- Parameters
-
string | $action | Could be edit or create. |
null | int | $id | Id of the region or null if creating a new one. |
◆ execute()
quizaccess_seb\template_controller::execute |
( |
| $action | ) |
|
Execute required action.
- Parameters
-
string | $action | Action to execute. |
◆ footer()
quizaccess_seb\template_controller::footer |
( |
| ) |
|
|
protected |
Print out the page footer.
- Return values
-
◆ get_base_url()
static quizaccess_seb\template_controller::get_base_url |
( |
| ) |
|
|
static |
Returns base URL for the manager.
- Return values
-
◆ get_create_button_text()
quizaccess_seb\template_controller::get_create_button_text |
( |
| ) |
|
|
protected |
Returns a text for create new record button.
- Return values
-
◆ get_edit_heading()
quizaccess_seb\template_controller::get_edit_heading |
( |
| ) |
|
|
protected |
Edit record heading string.
- Return values
-
◆ get_form()
quizaccess_seb\template_controller::get_form |
( |
| $instance | ) |
|
|
protected |
Returns form for the record.
- Parameters
-
- Return values
-
◆ get_instance()
quizaccess_seb\template_controller::get_instance |
( |
| $id = 0, |
|
|
stdClass | $data = null ) |
|
protected |
Return record instance.
- Parameters
-
int | $id | |
stdClass | null | $data | |
- Return values
-
◆ get_new_heading()
quizaccess_seb\template_controller::get_new_heading |
( |
| ) |
|
|
protected |
New record heading string.
- Return values
-
◆ get_view_heading()
quizaccess_seb\template_controller::get_view_heading |
( |
| ) |
|
|
protected |
View page heading string.
- Return values
-
◆ header()
quizaccess_seb\template_controller::header |
( |
| $title | ) |
|
|
protected |
Print out page header.
- Parameters
-
string | $title | Title to display. |
◆ hide()
quizaccess_seb\template_controller::hide |
( |
| $id | ) |
|
|
protected |
Hide the template.
- Parameters
-
int | $id | The ID of the template to hide. |
◆ show()
quizaccess_seb\template_controller::show |
( |
int | $id | ) |
|
|
protected |
Show the template.
- Parameters
-
int | $id | The ID of the template to show. |
◆ show_hide()
quizaccess_seb\template_controller::show_hide |
( |
int | $id, |
|
|
int | $visibility ) |
|
protected |
Show or Hide the template.
- Parameters
-
int | $id | The ID of the template to hide. |
int | $visibility | The intended visibility. |
The documentation for this class was generated from the following file:
- mod/quiz/accessrule/seb/classes/template_controller.php