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

Go to the source code of this file.

Namespaces

namespace  core

Enumerations

enum  SHOW_ALL_PAGE_SIZE
enum  DEFAULT_PAGE_SIZE

Variables

 $tagschecked = optional_param_array('tagschecked', array(), PARAM_INT)
 $newnames = optional_param_array('newname', array(), PARAM_TAG)
 $tagtypes = optional_param_array('tagtypes', array(), PARAM_ALPHA)
 $action = optional_param('action', '', PARAM_ALPHA)
 $perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT)
if(empty($CFG->usetags)) $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $params = array()
 $err_notice = ''
 $notice = ''
 $existing_tagtypes = array()
if($ptypes=$DB->
get_records_sql("SELECT
DISTINCT(tagtype) FROM {tag}")) 
$existing_tagtypes ['official'] = get_string('tagtype_official', 'tag')
 $existing_tagtypes ['default'] = get_string('tagtype_default', 'tag')
 $tablecolumns = array('id', 'name', 'fullname', 'count', 'flag', 'timemodified', 'rawname', 'tagtype', '')
 $tableheaders
 $table = new flexible_table('tag-management-list-'.$USER->id)
 $baseurl = $CFG->wwwroot.'/tag/manage.php?perpage='.$perpage
if($where) $query
 $totalcount
if($perpage==SHOW_ALL_PAGE_SIZE)
else 
if ($totalcount > 0 and $perpage< $totalcount)

Enumeration Type Documentation

Definition at line 30 of file manage.php.

Definition at line 29 of file manage.php.


Variable Documentation

Definition at line 35 of file manage.php.

$baseurl = $CFG->wwwroot.'/tag/manage.php?perpage='.$perpage

Definition at line 194 of file manage.php.

$err_notice = ''

Definition at line 61 of file manage.php.

$existing_tagtypes = array()

Definition at line 65 of file manage.php.

if ($ptypes=$DB->get_records_sql("SELECT DISTINCT(tagtype) FROM {tag}")) $existing_tagtypes['official'] = get_string('tagtype_official', 'tag')

Definition at line 71 of file manage.php.

$existing_tagtypes['default'] = get_string('tagtype_default', 'tag')

Definition at line 72 of file manage.php.

$newnames = optional_param_array('newname', array(), PARAM_TAG)

Definition at line 33 of file manage.php.

$notice = ''

Definition at line 62 of file manage.php.

$params = array()

Definition at line 47 of file manage.php.

$perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT)

Definition at line 36 of file manage.php.

if ($where) $query
Initial value:
"
        SELECT tg.id, tg.name, tg.rawname, tg.tagtype, tg.flag, tg.timemodified,
               u.id AS owner, u.firstname, u.lastname,
               COUNT(ti.id) AS count
          FROM {tag} tg
     LEFT JOIN {tag_instance} ti ON ti.tagid = tg.id
     LEFT JOIN {user} u ON u.id = tg.userid
               $where
      GROUP BY tg.id, tg.name, tg.rawname, tg.tagtype, tg.flag, tg.timemodified,
               u.id, u.firstname, u.lastname
         $sort"

Definition at line 228 of file manage.php.

if (empty($CFG->usetags)) $systemcontext = get_context_instance(CONTEXT_SYSTEM)

Definition at line 44 of file manage.php.

$table = new flexible_table('tag-management-list-'.$USER->id)

Definition at line 192 of file manage.php.

$tablecolumns = array('id', 'name', 'fullname', 'count', 'flag', 'timemodified', 'rawname', 'tagtype', '')

Definition at line 181 of file manage.php.

$tableheaders
Initial value:
 array(get_string('id', 'tag'),
                      get_string('name', 'tag'),
                      get_string('owner', 'tag'),
                      get_string('count', 'tag'),
                      get_string('flag', 'tag'),
                      get_string('timemodified', 'tag'),
                      get_string('newname', 'tag'),
                      get_string('tagtype', 'tag'),
                      get_string('select', 'tag'))

Definition at line 182 of file manage.php.

$tagschecked = optional_param_array('tagschecked', array(), PARAM_INT)

Definition at line 32 of file manage.php.

$tagtypes = optional_param_array('tagtypes', array(), PARAM_ALPHA)

Definition at line 34 of file manage.php.

$totalcount
Initial value:
 $DB->count_records_sql("
        SELECT COUNT(DISTINCT(tg.id))
          FROM {tag} tg
     LEFT JOIN {user} u ON u.id = tg.userid
        $where", $params)

Definition at line 240 of file manage.php.

if ($perpage==SHOW_ALL_PAGE_SIZE) else if($totalcount > 0 and $perpage< $totalcount)

Definition at line 303 of file manage.php.

 All Data Structures Namespaces Files Functions Variables Enumerations