Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 74... Línea 74...
74
        $this->displayoptions = $displayoptions;
74
        $this->displayoptions = $displayoptions;
75
        $this->hasavailabilityname = 'hasmodavailability';
75
        $this->hasavailabilityname = 'hasmodavailability';
76
    }
76
    }
Línea 77... Línea 77...
77
 
77
 
-
 
78
    /**
-
 
79
     * Export this data so it can be used as the context for a mustache template.
-
 
80
     *
-
 
81
     * @param \renderer_base $output typically, the renderer that's calling this function
-
 
82
     * @return stdClass|null data context for a mustache template
-
 
83
     */
-
 
84
    public function export_for_template(\renderer_base $output): ?stdClass {
-
 
85
        if (!$this->format->show_activity_editor_options($this->mod)) {
-
 
86
            return null;
-
 
87
        }
-
 
88
        return parent::export_for_template($output);
-
 
89
    }
-
 
90
 
78
    /**
91
    /**
79
     * Get the availability data to be used as the context for a mustache template.
92
     * Get the availability data to be used as the context for a mustache template.
80
     *
93
     *
81
     * @param \renderer_base $output typically, the renderer that's calling this function
94
     * @param \renderer_base $output typically, the renderer that's calling this function
82
     * @return array the availability data.
95
     * @return array the availability data.