Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 59... Línea 59...
59
        $this->forumsubscriptionscount = 0;
59
        $this->forumsubscriptionscount = 0;
Línea 60... Línea 60...
60
 
60
 
61
        parent::reset();
61
        parent::reset();
Línea 62... Línea 62...
62
    }
62
    }
63
 
63
 
64
    public function create_instance($record = null, array $options = null) {
64
    public function create_instance($record = null, ?array $options = null) {
65
        global $CFG;
65
        global $CFG;
Línea 66... Línea 66...
66
        require_once($CFG->dirroot.'/mod/forum/lib.php');
66
        require_once($CFG->dirroot.'/mod/forum/lib.php');
Línea 252... Línea 252...
252
 
252
 
253
        // Increment the forum post count.
253
        // Increment the forum post count.
Línea 254... Línea 254...
254
        $this->forumpostcount++;
254
        $this->forumpostcount++;
255
 
255
 
Línea 256... Línea 256...
256
        // Variable to store time.
256
        // Variable to store time.
Línea 257... Línea 257...
257
        $time = time() + $this->forumpostcount;
257
        $time = time();
258
 
258