public function setup($page, $context) {
        // This only requires execution once per request.
        static $jsinitialised = false;
        if ($jsinitialised) {
            return;
        }
        $jsinitialised = true;

        // Set up the media manager so that media plugins requiring JS are initialised.
        $mediamanager = core_media_manager::instance($page);
    }
public function setup($page, $context) {
        // This only requires execution once per request.
        static $jsinitialised = false;
        if ($jsinitialised) {
            return;
        }
        $jsinitialised = true;

        // Set up the media manager so that media plugins requiring JS are initialised.
        $mediamanager = core_media_manager::instance($page);
    }
public function setup ( $ page , $ context ) { // This only requires execution once per request. static $ jsinitialised = false ; if ( $ jsinitialised ) { return ; } $ jsinitialised = true ; // Set up the media manager so that media plugins requiring JS are initialised. $ mediamanager = core_media_manager :: instance ( $ page ) ; }
Setup page with filter requirements and other prepare stuff.

@param moodle_page $page The page we are going to add requirements to.
@param context $context The context which contents are going to be filtered.
Setup page with filter requirements and other prepare stuff .