Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/blog/edit.php File Reference

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

Variable Documentation

Definition at line 31 of file edit.php.

$attachmentoptions = array('subdirs'=>false, 'maxfiles'=> 99, 'maxbytes'=>$CFG->maxbytes)

Definition at line 162 of file edit.php.

$blogeditform = new blog_edit_form(null, compact('entry', 'summaryoptions', 'attachmentoptions', 'sitecontext', 'courseid', 'modid'))

Definition at line 164 of file edit.php.

if (!empty($courseid)&&empty($modid)) if (!empty($modid)) if (empty($courseid)) $blogheaders = blog_get_headers()

Definition at line 64 of file edit.php.

Definition at line 33 of file edit.php.

Definition at line 35 of file edit.php.

$entry = file_prepare_standard_editor($entry, 'summary', $summaryoptions, $sitecontext, 'blog', 'post', $entry->id)

Definition at line 166 of file edit.php.

$id = optional_param('entryid', 0, PARAM_INT)

Definition at line 32 of file edit.php.

Definition at line 34 of file edit.php.

if (!empty($id)&&$action== 'add') $returnurl = new moodle_url('/blog/index.php')

Definition at line 44 of file edit.php.

if ($action== 'edit') if (empty($CFG->bloglevel)) if (isguestuser()) $sitecontext = get_context_instance(CONTEXT_SYSTEM)

Definition at line 80 of file edit.php.

$strblogs = get_string('blogs','blog')

Definition at line 108 of file edit.php.

$summaryoptions = array('subdirs'=>false, 'maxfiles'=> 99, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>true, 'context'=>$sitecontext)

Definition at line 161 of file edit.php.

if (!empty($CFG->usetags)&&!empty($entry->id)) $entry action = $action

Definition at line 174 of file edit.php.

$entry courseid = $courseid

Definition at line 244 of file edit.php.

die

Definition at line 248 of file edit.php.

if ($action=== 'delete') else if ($action== 'add') else if ($action== 'edit') if(!empty($entry->id))

Definition at line 142 of file edit.php.

if ($blogeditform->is_cancelled()) else if ($data=$blogeditform->get_data()) switch ($action) $entry modid = $modid

Definition at line 243 of file edit.php.

 All Data Structures Namespaces Files Functions Variables Enumerations