Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 37... Línea 37...
37
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @since     Moodle 2.0
38
 * @since     Moodle 2.0
39
 */
39
 */
40
class core_files_renderer extends plugin_renderer_base {
40
class core_files_renderer extends plugin_renderer_base {
Línea 41... Línea 41...
41
 
41
 
42
    public function files_tree_viewer(file_info $file_info, array $options = null) {
42
    public function files_tree_viewer(file_info $file_info, ?array $options = null) {
43
        $tree = new files_tree_viewer($file_info, $options);
43
        $tree = new files_tree_viewer($file_info, $options);
44
        return $this->render($tree);
44
        return $this->render($tree);
Línea 45... Línea 45...
45
    }
45
    }
Línea 174... Línea 174...
174
    </div>
174
    </div>
175
    <div class="fp-filename-field">
175
    <div class="fp-filename-field">
176
        <div class="fp-filename text-truncate"></div>
176
        <div class="fp-filename text-truncate"></div>
177
    </div>
177
    </div>
178
    </a>
178
    </a>
179
    <a class="fp-contextmenu btn btn-icon btn-light border icon-no-margin icon-size-3" href="#">
179
    <a class="fp-contextmenu btn btn-icon btn-light border" href="#">
180
        <span>'.$this->pix_icon('i/menu', 'â–¶').'</span></a>
180
        <span>'.$this->pix_icon('i/menu', 'â–¶').'</span></a>
181
</div>';
181
</div>';
182
        return $rv;
182
        return $rv;
183
    }
183
    }
Línea 574... Línea 574...
574
    /**
574
    /**
575
     * Constructor of moodle_file_tree_viewer class
575
     * Constructor of moodle_file_tree_viewer class
576
     * @param file_info $file_info
576
     * @param file_info $file_info
577
     * @param array $options
577
     * @param array $options
578
     */
578
     */
579
    public function __construct(file_info $file_info, array $options = null) {
579
    public function __construct(file_info $file_info, ?array $options = null) {
580
        global $CFG;
580
        global $CFG;
Línea 581... Línea 581...
581
 
581
 
582
        //note: this MUST NOT use get_file_storage() !!!!!!!!!!!!!!!!!!!!!!!!!!!!
582
        //note: this MUST NOT use get_file_storage() !!!!!!!!!!!!!!!!!!!!!!!!!!!!
583
        $this->options = (array)$options;
583
        $this->options = (array)$options;