Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 15... Línea 15...
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea 16...
16
 
16
 
Línea 17... Línea 17...
17
namespace qbank_viewcreator;
17
namespace qbank_viewcreator;
-
 
18
 
Línea 18... Línea 19...
18
 
19
use core_question\local\bank\plugin_features_base;
19
use core_question\local\bank\plugin_features_base;
20
use core_question\local\bank\view;
20
 
21
 
21
/**
22
/**
22
 * Class plugin_feature is the entrypoint for the columns.
23
 * Class plugin_feature is the entrypoint for the columns.
23
 *
24
 *
24
 * @package    qbank_viewcreator
25
 * @package    qbank_viewcreator
25
 * @copyright  2021 Catalyst IT Australia Pty Ltd
26
 * @copyright  2021 Catalyst IT Australia Pty Ltd
26
 * @author     Ghaly Marc-Alexandre <marc-alexandreghaly@catalyst-ca.net>
27
 * @author     Ghaly Marc-Alexandre <marc-alexandreghaly@catalyst-ca.net>
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
-
 
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
29
 */
29
class plugin_feature extends plugin_features_base {
30
class plugin_feature extends plugin_features_base {
30
 
31
    #[\Override]
31
    public function get_question_columns($qbank): array {
32
    public function get_question_columns($qbank): array {
32
        return [
33
        return [
33
            new creator_name_column($qbank),
34
            new creator_name_column($qbank),
-
 
35
            new modifier_name_column($qbank),
-
 
36
        ];
-
 
37
    }
-
 
38
 
-
 
39
    #[\Override]
-
 
40
    public function get_question_filters(?view $qbank = null): array {
-
 
41
        return [
-
 
42
            new timemodified_condition($qbank),
-
 
43
            new createdby_condition($qbank),
34
            new modifier_name_column($qbank),
44
            new modifiedby_condition($qbank),