|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Variables | |
| $repo_id = required_param('repo_id', PARAM_INT) | |
| Parameters. | |
| $sql | |
| Get repository instance information. | |
| $repository = $DB->get_record_sql($sql, array($repo_id), '*', MUST_EXIST) | |
| $type = $repository->type | |
| $strhttpsbug = get_string('cannotaccessparentwin', 'repository') | |
| $strrefreshnonjs = get_string('refreshnonjsfilepicker', 'repository') | |
| $js | |
| $js |
"text/javascript"> if(window.opener){ window.opener.M.core_filepicker.active_filepicker.list(); window.close(); } else { alert("{$strhttpsbug }"); } </script> </head> <body> <noscript> {$strrefreshnonjs} </noscript> </body> </html> EOD
Definition at line 72 of file repository_callback.php.
| $repo_id = required_param('repo_id', PARAM_INT) |
Parameters.
Definition at line 36 of file repository_callback.php.
| $repository = $DB->get_record_sql($sql, array($repo_id), '*', MUST_EXIST) |
Definition at line 49 of file repository_callback.php.
| $sql |
'SELECT i.name, i.typeid, r.type, i.contextid FROM {repository} r, {repository_instances} i '. 'WHERE i.id=? AND i.typeid=r.id'
Get repository instance information.
Definition at line 46 of file repository_callback.php.
| $strhttpsbug = get_string('cannotaccessparentwin', 'repository') |
Definition at line 70 of file repository_callback.php.
| $strrefreshnonjs = get_string('refreshnonjsfilepicker', 'repository') |
Definition at line 71 of file repository_callback.php.
| $type = $repository->type |
Definition at line 51 of file repository_callback.php.