Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/wiki/filesedit.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $subwikiid = required_param('subwiki', PARAM_INT)
 $pageid = optional_param('pageid', 0, PARAM_INT)
 $returnurl = optional_param('returnurl', '', PARAM_URL)
if(!$subwiki=wiki_get_subwiki($subwikiid))
if(!$wiki=wiki_get_wiki($subwiki->
wikiid)) if(!$cm=get_coursemodule_from_instance("wiki",
$subwiki->wikiid)) 
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
if(empty($returnurl)) $title = get_string('editfiles', 'wiki')
 $struser = get_string('user')
 $url = new moodle_url('/mod/wiki/filesedit.php', array('subwiki'=>$subwiki->id, 'pageid'=>$pageid))
 $data = new stdClass()
$data returnurl = $returnurl
$data subwikiid = $subwiki->id
 $maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes)
 $options = array('subdirs'=>0, 'maxbytes'=>$maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL)
 $mform = new mod_wiki_filesedit_form(null, array('data'=>$data, 'options'=>$options))
if($mform->is_cancelled()) else if ($formdata=$mform->get_data())

Variable Documentation

Definition at line 53 of file filesedit.php.

if (!$subwiki=wiki_get_subwiki($subwikiid)) if (!$wiki=wiki_get_wiki($subwiki->wikiid)) if (!$cm=get_coursemodule_from_instance("wiki", $subwiki->wikiid)) $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)

Definition at line 51 of file filesedit.php.

$data = new stdClass()

Definition at line 77 of file filesedit.php.

$maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes)

Definition at line 80 of file filesedit.php.

$mform = new mod_wiki_filesedit_form(null, array('data'=>$data, 'options'=>$options))

Definition at line 84 of file filesedit.php.

$options = array('subdirs'=>0, 'maxbytes'=>$maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL)

Definition at line 81 of file filesedit.php.

Definition at line 33 of file filesedit.php.

Definition at line 34 of file filesedit.php.

$struser = get_string('user')

Definition at line 68 of file filesedit.php.

Definition at line 31 of file filesedit.php.

if (empty($returnurl)) $title = get_string('editfiles', 'wiki')

Definition at line 66 of file filesedit.php.

$url = new moodle_url('/mod/wiki/filesedit.php', array('subwiki'=>$subwiki->id, 'pageid'=>$pageid))

Definition at line 69 of file filesedit.php.

if ($mform->is_cancelled()) else if($formdata=$mform->get_data())

Definition at line 88 of file filesedit.php.

Definition at line 78 of file filesedit.php.

$data subwikiid = $subwiki->id

Definition at line 79 of file filesedit.php.

 All Data Structures Namespaces Files Functions Variables Enumerations