|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Variables | |
| $action = required_param('action', PARAM_ALPHA) | |
| $id = optional_param('entryid', 0, PARAM_INT) | |
| $confirm = optional_param('confirm', 0, PARAM_BOOL) | |
| $modid = optional_param('modid', 0, PARAM_INT) | |
| $courseid = optional_param('courseid', 0, PARAM_INT) | |
| if(!empty($id)&&$action== 'add') | $returnurl = new moodle_url('/blog/index.php') |
| if(!empty($courseid)&&empty($modid)) if(!empty($modid)) if(empty($courseid)) | $blogheaders = blog_get_headers() |
| if($action== 'edit') if(empty($CFG-> bloglevel)) if(isguestuser()) | $sitecontext = get_context_instance(CONTEXT_SYSTEM) |
| $strblogs = get_string('blogs','blog') | |
| if($action=== 'delete') else if($action== 'add') else if($action== 'edit') | if (!empty($entry->id)) |
| $summaryoptions = array('subdirs'=>false, 'maxfiles'=> 99, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>true, 'context'=>$sitecontext) | |
| $attachmentoptions = array('subdirs'=>false, 'maxfiles'=> 99, 'maxbytes'=>$CFG->maxbytes) | |
| $blogeditform = new blog_edit_form(null, compact('entry', 'summaryoptions', 'attachmentoptions', 'sitecontext', 'courseid', 'modid')) | |
| $entry = file_prepare_standard_editor($entry, 'summary', $summaryoptions, $sitecontext, 'blog', 'post', $entry->id) | |
| if(!empty($CFG->usetags)&&!empty($entry-> id)) $entry | action = $action |
| if($blogeditform->is_cancelled()) else if($data=$blogeditform-> get_data()) switch($action) $entry | modid = $modid |
| $entry | courseid = $courseid |
| die | |
| $action = required_param('action', PARAM_ALPHA) |
| $attachmentoptions = array('subdirs'=>false, 'maxfiles'=> 99, 'maxbytes'=>$CFG->maxbytes) |
| $blogeditform = new blog_edit_form(null, compact('entry', 'summaryoptions', 'attachmentoptions', 'sitecontext', 'courseid', 'modid')) |
| $confirm = optional_param('confirm', 0, PARAM_BOOL) |
| $entry = file_prepare_standard_editor($entry, 'summary', $summaryoptions, $sitecontext, 'blog', 'post', $entry->id) |
| $id = optional_param('entryid', 0, PARAM_INT) |
| if (!empty($id)&&$action== 'add') $returnurl = new moodle_url('/blog/index.php') |
| if ($action== 'edit') if (empty($CFG->bloglevel)) if (isguestuser()) $sitecontext = get_context_instance(CONTEXT_SYSTEM) |
| $strblogs = get_string('blogs','blog') |