Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 786... Línea 786...
786
        ];
786
        ];
787
        // Fetch the local data.
787
        // Fetch the local data.
788
        if ($dismissedonly) {
788
        if ($dismissedonly) {
789
            mtrace("=> Looking for any recording that has been 'dismissed' in the past " . self::RECORDING_TIME_LIMIT_DAYS
789
            mtrace("=> Looking for any recording that has been 'dismissed' in the past " . self::RECORDING_TIME_LIMIT_DAYS
790
                . " days.");
790
                . " days.");
791
            $select = 'status = :status_dismissed AND timecreated > :withindays';
791
            $select = 'status = :status_dismissed AND timemodified > :withindays';
792
            $params['status_dismissed'] = self::RECORDING_STATUS_DISMISSED;
792
            $params['status_dismissed'] = self::RECORDING_STATUS_DISMISSED;
793
        } else {
793
        } else {
794
            mtrace("=> Looking for any recording awaiting processing from the past " . self::RECORDING_TIME_LIMIT_DAYS . " days.");
794
            mtrace("=> Looking for any recording awaiting processing from the past " . self::RECORDING_TIME_LIMIT_DAYS . " days.");
795
            $select = '(status = :status_awaiting AND timecreated > :withindays) OR status = :status_reset';
795
            $select = '(status = :status_awaiting AND timecreated > :withindays) OR status = :status_reset';
796
            $params['status_reset'] = self::RECORDING_STATUS_RESET;
796
            $params['status_reset'] = self::RECORDING_STATUS_RESET;