Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 27... Línea 27...
27
     *
27
     *
28
     * @param   stdClass    $tourconfig     The configuration for the new tour
28
     * @param   stdClass    $tourconfig     The configuration for the new tour
29
     * @param   bool        $persist        Whether to persist the data
29
     * @param   bool        $persist        Whether to persist the data
30
     * @return  \tool_usertours\tour
30
     * @return  \tool_usertours\tour
31
     */
31
     */
32
    public function helper_create_tour(\stdClass $tourconfig = null, $persist = true) {
32
    public function helper_create_tour(?\stdClass $tourconfig = null, $persist = true) {
33
        $minvalues = [
33
        $minvalues = [
34
            'id' => null,
34
            'id' => null,
35
            'pathmatch' => '/my/%',
35
            'pathmatch' => '/my/%',
36
            'enabled' => true,
36
            'enabled' => true,
37
            'name' => '',
37
            'name' => '',
Línea 63... Línea 63...
63
     *
63
     *
64
     * @param   stdClass    $stepconfig     The configuration for the new step
64
     * @param   stdClass    $stepconfig     The configuration for the new step
65
     * @param   bool        $persist        Whether to persist the data
65
     * @param   bool        $persist        Whether to persist the data
66
     * @return  \tool_usertours\step
66
     * @return  \tool_usertours\step
67
     */
67
     */
68
    public function helper_create_step(\stdClass $stepconfig = null, $persist = true) {
68
    public function helper_create_step(?\stdClass $stepconfig = null, $persist = true) {
69
        $minvalues = [
69
        $minvalues = [
70
            'id' => null,
70
            'id' => null,
71
            'title' => '',
71
            'title' => '',
72
            'content' => '',
72
            'content' => '',
73
            'targettype' => \tool_usertours\target::TARGET_UNATTACHED,
73
            'targettype' => \tool_usertours\target::TARGET_UNATTACHED,