Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 20... Línea 20...
20
 * @package    report_log
20
 * @package    report_log
21
 * @copyright  2014 Rajesh Taneja <rajesh.taneja@gmail.com>
21
 * @copyright  2014 Rajesh Taneja <rajesh.taneja@gmail.com>
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
23
 */
Línea -... Línea 24...
-
 
24
 
24
 
25
use core\dataformat;
Línea 25... Línea 26...
25
use core\report_helper;
26
use core\report_helper;
-
 
27
 
26
 
28
defined('MOODLE_INTERNAL') || die;
27
defined('MOODLE_INTERNAL') || die;
29
 
Línea 28... Línea 30...
28
global $CFG;
30
global $CFG;
29
require_once($CFG->libdir . '/tablelib.php');
31
require_once($CFG->libdir . '/tablelib.php');
Línea 297... Línea 299...
297
     *
299
     *
298
     * @param stdClass $event event data.
300
     * @param stdClass $event event data.
299
     * @return string HTML for the description column
301
     * @return string HTML for the description column
300
     */
302
     */
301
    public function col_description($event) {
303
    public function col_description($event) {
-
 
304
        if (empty($this->download) || dataformat::get_format_instance($this->download)->supports_html()) {
-
 
305
            return format_text($event->get_description(), FORMAT_PLAIN);
302
        // Description.
306
        } else {
303
        return format_text($event->get_description(), FORMAT_PLAIN);
307
            return $event->get_description();
-
 
308
        }
304
    }
309
    }
Línea 305... Línea 310...
305
 
310
 
306
    /**
311
    /**
307
     * Generate the origin column.
312
     * Generate the origin column.