douba9020 2015-09-23 21:30
浏览 23

结合Moodle中两个活动模块的报告

I have two different activity modules, the first is a standard Moodle module and the second is developed by me. In each of them we have

mod/moodlemodule/rb_sources/rb_source_moodlemodule_presence.php
mod/newmodule/rb_sources/rb_source_newmodule_presence.php

Each one of them has the following standard functions(the code is shortened):

     protected function define_columnoptions() {
            global $DB;
            $usernamefieldscreator = totara_get_all_user_name_fields_join('creator');
            $usernamefieldsbooked  = totara_get_all_user_name_fields_join('bookedby');
            $columnoptions = array(
                new rb_column_option(

    protected function define_filteroptions() {
            $filteroptions = array(
                new rb_filter_option(

    public function rb_filter_position_types_list() {
            global $CFG, $POSITION_TYPES;

            include_once($CFG->dirroot.'/totara/hierarchy/prefix/position/lib.php');

            return $POSITION_TYPES;
        }

        protected function define_contentoptions() {
            $contentoptions = array(
                new rb_content_option(

protected function define_paramoptions() {
        $paramoptions = array(
            new rb_param_option(

protected function define_defaultcolumns() {
        $defaultcolumns = array(
            array(

    protected function define_requiredcolumns() {
        $requiredcolumns = array();

        $requiredcolumns[] = new rb_column(

protected function define_defaultfilters() {
        $defaultfilters = array(
            array(

They can be found in every report file of the activity modules and they deliver the same data (as they are standards in almost every other module):

name email startdate finishdate address coursename

Is it possible to add the data from the both reports in one single report and display it? And how to structure the code inside the new rb_source file?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)