Class for manipulating with the template records.
More...
|
| __construct () |
| region_manager constructor.
|
|
| execute ($action) |
| Execute required action. More...
|
|
|
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.
|
|
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: