|
array | $colsize |
| columns with size.
|
|
array | $columnorder |
| Column order as set in config_plugins 'class' => 'position', ie: question_type_column => 3.
|
|
array | $disabledcolumns |
| Disabled columns in config_plugins table.
|
|
array | $hiddencolumns |
| hidden columns.
|
|
◆ __construct()
qbank_columnsortorder\column_manager::__construct |
( |
bool | $globalsettings = false | ) |
|
Constructor for column_manager class.
- Parameters
-
bool | $globalsettings | Only use the global default settings, ignoring user preferences? |
◆ create_column_objects()
qbank_columnsortorder\column_manager::create_column_objects |
( |
array | $columnsnames | ) |
|
Returns an array of column objects.
- Parameters
-
array | $columnsnames | Array of columns. |
- Return values
-
column_base[] | Array of $columnsname => $columnobject |
◆ disable_columns()
qbank_columnsortorder\column_manager::disable_columns |
( |
string | $plugin | ) |
|
Disables columns.
- Parameters
-
◆ enable_columns()
qbank_columnsortorder\column_manager::enable_columns |
( |
string | $plugin | ) |
|
Enables columns.
- Parameters
-
◆ get_colsize_map()
qbank_columnsortorder\column_manager::get_colsize_map |
( |
| ) |
|
Return $this->colsize mapped as an array of column name => width, excluding empty sizes.
- Return values
-
◆ get_column_actions()
qbank_columnsortorder\column_manager::get_column_actions |
( |
view | $qbank | ) |
|
Return a list of actions to display in an action menu for each column.
- Parameters
-
view | $qbank | Question bank view. |
- Return values
-
column_action_base[] | A list of column actions. |
Reimplemented from core_question\local\bank\column_manager_base.
◆ get_column_width()
qbank_columnsortorder\column_manager::get_column_width |
( |
column_base | $column | ) |
|
◆ get_columns()
qbank_columnsortorder\column_manager::get_columns |
( |
| ) |
|
Get enabled columns.
- Return values
-
◆ get_disabled_columns()
qbank_columnsortorder\column_manager::get_disabled_columns |
( |
| ) |
|
Get disabled columns.
- Return values
-
◆ get_hidden_columns()
qbank_columnsortorder\column_manager::get_hidden_columns |
( |
| ) |
|
Return an array of hidden columns as an array of class => column name.
- Return values
-
◆ get_questionbank()
qbank_columnsortorder\column_manager::get_questionbank |
( |
| ) |
|
◆ get_sorted_columns() [1/2]
core_question\local\bank\column_manager_base::get_sorted_columns |
( |
array | $unsortedcolumns | ) |
|
|
inherited |
Sort the list of columns.
Sort the provided list of columns into the order implemented in this column manager.
- Parameters
-
array | $unsortedcolumns | Unordered array of columns |
- Return values
-
array | Columns in the desired order. |
◆ get_sorted_columns() [2/2]
qbank_columnsortorder\column_manager::get_sorted_columns |
( |
| $ordertosort | ) |
|
Orders columns in the question bank view according to config_plugins table 'qbank_columnsortorder' config.
- Parameters
-
array | $ordertosort | Unordered array of columns, [columnname => class] |
- Return values
-
◆ set_column_order()
static qbank_columnsortorder\column_manager::set_column_order |
( |
?array | $columns, |
|
|
bool | $global = false ) |
|
static |
Sets column order in the qbank_columnsortorder plugin config.
- Parameters
-
?array | $columns | Column order to set. Null value clears the setting. |
bool | $global | save this as a global default, rather than a user preference? |
◆ set_column_size()
static qbank_columnsortorder\column_manager::set_column_size |
( |
?string | $sizes, |
|
|
bool | $global = false ) |
|
static |
Column size.
- Parameters
-
?string | $sizes | columns with width. Null value clears the setting. |
bool | $global | save this as a global default, rather than a user preference? |
◆ set_columns_visibility()
qbank_columnsortorder\column_manager::set_columns_visibility |
( |
array | $columns | ) |
|
◆ set_hidden_columns()
static qbank_columnsortorder\column_manager::set_hidden_columns |
( |
?array | $columns, |
|
|
bool | $global = false ) |
|
static |
Hidden Columns.
- Parameters
-
?array | $columns | List of hidden columns. Null value clears the setting. |
bool | $global | save this as a global default, rather than a user preference? |
◆ update_config()
qbank_columnsortorder\column_manager::update_config |
( |
| $enabledcolumns, |
|
|
| $disabledcolumns ) |
|
protected |
Updates enabled and disabled config for 'qbank_columnsortorder' plugin.
- Parameters
-
array | $enabledcolumns | Enabled columns to set. |
array | $disabledcolumns | Disabled columns to set. |
The documentation for this class was generated from the following file:
- question/bank/columnsortorder/classes/column_manager.php