protected function specific_filepicker_options($acceptedtypes, $draftitemid, $context) {
        debugging('qtype_essay_format_editorfilepicker_renderer::specific_filepicker_options() is deprecated, ' .
            'use question_utils::specific_filepicker_options() instead.', DEBUG_DEVELOPER);

        $filepickeroptions = new stdClass();
        $filepickeroptions->accepted_types = $acceptedtypes;
        $filepickeroptions->return_types = FILE_INTERNAL | FILE_EXTERNAL;
        $filepickeroptions->context = $context;
        $filepickeroptions->env = 'filepicker';

        $options = initialise_filepicker($filepickeroptions);
        $options->context = $context;
        $options->client_id = uniqid();
        $options->env = 'editor';
        $options->itemid = $draftitemid;

        return $options;
    }
protected function specific_filepicker_options($acceptedtypes, $draftitemid, $context) {
        debugging('qtype_essay_format_editorfilepicker_renderer::specific_filepicker_options() is deprecated, ' .
            'use question_utils::specific_filepicker_options() instead.', DEBUG_DEVELOPER);

        $filepickeroptions = new stdClass();
        $filepickeroptions->accepted_types = $acceptedtypes;
        $filepickeroptions->return_types = FILE_INTERNAL | FILE_EXTERNAL;
        $filepickeroptions->context = $context;
        $filepickeroptions->env = 'filepicker';

        $options = initialise_filepicker($filepickeroptions);
        $options->context = $context;
        $options->client_id = uniqid();
        $options->env = 'editor';
        $options->itemid = $draftitemid;

        return $options;
    }
protected function specific_filepicker_options ( $ acceptedtypes , $ draftitemid , $ context ) { debugging ( 'qtype_essay_format_editorfilepicker_renderer::specific_filepicker_options() is deprecated, ' . 'use question_utils::specific_filepicker_options() instead.' , DEBUG_DEVELOPER ) ; $ filepickeroptions = new stdClass ( ) ; $ filepickeroptions -> accepted_types = $ acceptedtypes ; $ filepickeroptions -> return_types = FILE_INTERNAL | FILE_EXTERNAL ; $ filepickeroptions -> context = $ context ; $ filepickeroptions -> env = 'filepicker' ; $ options = initialise_filepicker ( $ filepickeroptions ) ; $ options -> context = $ context ; $ options -> client_id = uniqid ( ) ; $ options -> env = 'editor' ; $ options -> itemid = $ draftitemid ; return $ options ; }
Get the options required to configure the filepicker for one of the editor
toolbar buttons.
@deprecated since 3.5
@param mixed $acceptedtypes array of types of '*'.
@param int $draftitemid the draft area item id.
@param object $context the context.
@return object the required options.
Get the options required to configure the filepicker for one of the editor toolbar buttons .