Utility class for all files routines helper.  
 More...
|  | 
| static | get_plugin_filename (?stdClass $course, ?stdClass $cm, context $context, array $args) | 
|  | Helper for getting pluginfile name. 
 | 
|  | 
| static | get_presentation (context $context, string $presentation, $id=null, $withnonce=false) | 
|  | Helper return array containing the file descriptor for a preuploaded presentation. 
 | 
|  | 
| static | pluginfile_file (?stdClass $course, ?stdClass $cm, context $context, string $filearea, array $args) | 
|  | Helper for getting pluginfile. 
 | 
|  | 
| static | pluginfile_valid (stdClass $context, string $filearea) | 
|  | Helper for validating pluginfile. 
 | 
|  | 
| static | save_media_file (stdClass &$bigbluebuttonformdata) | 
|  | Get a full path to the file attached as a preuploaded presentation or if there is none, set the presentation field will be set to blank. 
 | 
|  | 
|  | 
| static | generate_nonce ($id) | 
|  | Generate a nonce and store it in the cache. 
 | 
|  | 
| static | get_file_areas () | 
|  | Returns an array of file areas. 
 | 
|  | 
| static | get_nonce (int $id) | 
|  | Helper generates a salt used for the preuploaded presentation callback url. 
 | 
|  | 
Utility class for all files routines helper. 
- Copyright
- 2021 onwards, Blindside Networks Inc 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ generate_nonce()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::generate_nonce | ( |  | $id | ) |  |  | staticprotected | 
 
Generate a nonce and store it in the cache. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ get_file_areas()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::get_file_areas | ( |  | ) |  |  | staticprotected | 
 
Returns an array of file areas. 
- Return values
- 
  
    | array | a list of available file areas |  
 
 
 
◆ get_nonce()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::get_nonce | ( | int | $id | ) |  |  | staticprotected | 
 
Helper generates a salt used for the preuploaded presentation callback url. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ get_plugin_filename()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::get_plugin_filename | ( | ?stdClass | $course, |  
          |  |  | ?stdClass | $cm, |  
          |  |  | context | $context, |  
          |  |  | array | $args ) |  | static | 
 
Helper for getting pluginfile name. 
- Parameters
- 
  
    | stdClass | null | $course | course object |  | stdClass | null | $cm | course module object |  | context | $context | context object |  | array | $args | extra arguments |  
 
- Return values
- 
  
  
 
 
◆ get_presentation()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::get_presentation | ( | context | $context, |  
          |  |  | string | $presentation, |  
          |  |  |  | $id = null, |  
          |  |  |  | $withnonce = false ) |  | static | 
 
Helper return array containing the file descriptor for a preuploaded presentation. 
- Parameters
- 
  
    | context | $context |  |  | string | $presentation | matching presentation file name |  | int | $id | bigbluebutton instance id |  | bool | $withnonce | add nonce to the url |  
 
- Return values
- 
  
    | array|null | the representation of the presentation as an associative array |  
 
 
 
◆ pluginfile_file()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::pluginfile_file | ( | ?stdClass | $course, |  
          |  |  | ?stdClass | $cm, |  
          |  |  | context | $context, |  
          |  |  | string | $filearea, |  
          |  |  | array | $args ) |  | static | 
 
Helper for getting pluginfile. 
- Parameters
- 
  
    | stdClass | null | $course | course object |  | stdClass | null | $cm | course module object |  | context | $context | context object |  | string | $filearea | file area |  | array | $args | extra arguments |  
 
- Return values
- 
  
  
 
 
◆ pluginfile_valid()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::pluginfile_valid | ( | stdClass | $context, |  
          |  |  | string | $filearea ) |  | static | 
 
Helper for validating pluginfile. 
- Parameters
- 
  
    | stdClass | $context | context object |  | string | $filearea | file area |  
 
- Return values
- 
  
    | bool|null | false if file not valid |  
 
 
 
◆ save_media_file()
  
  | 
        
          | static mod_bigbluebuttonbn\local\helpers\files::save_media_file | ( | stdClass & | $bigbluebuttonformdata | ) |  |  | static | 
 
Get a full path to the file attached as a preuploaded presentation or if there is none, set the presentation field will be set to blank. 
- Parameters
- 
  
    | stdClass | $bigbluebuttonformdata | BigBlueButtonBN form data Note that $bigbluebuttonformdata->presentation is the id of the filearea whereas the bbb instance table stores the file name/path |  
 
- Return values
- 
  
  
 
 
The documentation for this class was generated from the following file:
- mod/bigbluebuttonbn/classes/local/helpers/files.php