|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $mode = optional_param('mode', '', PARAM_ALPHA) | |
| $hook = optional_param('hook', '', PARAM_CLEAN) | |
| $cat = optional_param('cat',0, PARAM_ALPHANUM) | |
| $url = new moodle_url('/mod/glossary/export.php', array('id'=>$id)) | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $strglossaries = get_string("modulenameplural", "glossary") | |
| $strglossary = get_string("modulename", "glossary") | |
| $strallcategories = get_string("allcategories", "glossary") | |
| $straddentry = get_string("addentry", "glossary") | |
| $strnoentries = get_string("noentries", "glossary") | |
| $strsearchindefinition = get_string("searchindefinition", "glossary") | |
| $strsearch = get_string("search") | |
| $strexportfile = get_string("exportfile", "glossary") | |
| $strexportentries = get_string('exportentriestoxml', 'glossary') | |
| $exporturl = moodle_url::make_pluginfile_url($context->id, 'mod_glossary', 'export', 0, "/$cat/", 'export.xml', true) | |
| p($strexportfile)?>" /> </td> </tr></table> <div> </div> </form> <?php if (!empty($CFG-> enableportfolios) && $DB-> count_records('glossary_entries' | array ('glossaryid'=> $glossary->id))) |
| Flag to see if requisites check has been passed ok. | |
| $cat = optional_param('cat',0, PARAM_ALPHANUM) |
Definition at line 10 of file export.php.
Definition at line 36 of file export.php.
| $exporturl = moodle_url::make_pluginfile_url($context->id, 'mod_glossary', 'export', 0, "/$cat/", 'export.xml', true) |
Definition at line 57 of file export.php.
| $hook = optional_param('hook', '', PARAM_CLEAN) |
Definition at line 9 of file export.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 6 of file export.php.
| $mode = optional_param('mode', '', PARAM_ALPHA) |
Definition at line 8 of file export.php.
| $straddentry = get_string("addentry", "glossary") |
Definition at line 42 of file export.php.
| $strallcategories = get_string("allcategories", "glossary") |
Definition at line 41 of file export.php.
| $strexportentries = get_string('exportentriestoxml', 'glossary') |
Definition at line 47 of file export.php.
| $strexportfile = get_string("exportfile", "glossary") |
Definition at line 46 of file export.php.
| $strglossaries = get_string("modulenameplural", "glossary") |
Definition at line 39 of file export.php.
| $strglossary = get_string("modulename", "glossary") |
Definition at line 40 of file export.php.
| $strnoentries = get_string("noentries", "glossary") |
Definition at line 43 of file export.php.
| $strsearch = get_string("search") |
Definition at line 45 of file export.php.
| $strsearchindefinition = get_string("searchindefinition", "glossary") |
Definition at line 44 of file export.php.
Definition at line 12 of file export.php.
Flag to see if requisites check has been passed ok.
An array that contains the identifier and component of a help string if one has been set
An array of HTML attributes to apply to this setting
An array of options relating to this setting
An array of options to display in the select
The results of the backup execution
String mappings to the above stages
Array of capabilities required for each item in the search
An object containing the event properties can be accessed via the magic __get/set methods
The options to use with this description editor
An array of courses
An array of groups
An array of users
An array of options for the summary editor used by course request forms. This is initially set by summary_editor_options()
An array of users currently enrolled in the course Populated by course_enrolment_manager::get_users
An array of users who have roles within this course but who have not been enrolled in the course
#@+ These variables are used to cache the information this class uses please never use these directly instead use their get_ counterparts. private
An array containing JS YUI modules required by this button
An array containing JS initialisation calls required by this button
An array strings required by JS for this button
An array of HTML attributes
The users enrolled in this course
The fields for this table
An array of bulk user enrolment operations
An array of sortable fields
Cached grade plugin strings
An array of table headers
An array of table columns
Added to hold errors from last run of unserialize
Will be an array region-name => array(db rows loaded in load_blocks);
array region-name => array(block objects); populated as necessary by the ensure_instances_exist method.
array region-name => array(block_contents objects) what actually needs to be displayed in each region.
array region-name => array(block_contents objects) extra block-like things to be displayed in each region, before the real blocks.
Completion criteria private
These complement separators, they are appended to the resultant HTML private
Stores attributes passed to the element
Contains the select optgroups
Caches the list of official tags, to save repeat DB queries.
globals workaround
Array of buttons that if pressed do not result in the processing of the form.
Array whose keys are element names. If the key exists this is a advanced element
Element template array
private
Roster array, handles contacts and presence. Indexed by jid. Contains array with potentially two indexes 'contact' and 'presence'
Attributes
Subs?
Options for the library
Filters used to exclude object members when encoding
Array from int (section num, e.g. 0) => array of int (course-module id); this list only includes sections that actually contain at least one course-module
Array from int (cm id) => cm_info object
Array from string (modname) => int (instance id) => cm_info object
Groups that the current user belongs to. This value is usually not available (set to null) unless the course has activities set to groupmembersonly. When set, it is an array of grouping id => array of group id => group id. Includes grouping id 0 for 'all groups'.
Availability conditions for this course-module based on the completion of other course-modules (array from other course-module id to required completion state for that module) - from cached data in modinfo field
Availability conditions for this course-module based on course grades (array from grade item id to object with ->min, ->max fields) - from cached data in modinfo field
A multidimensional array to where the first key is the type and the second key is the nodes key.
An array that contains references to nodes in the same order they were added. This is maintained as a progressive array.
Nothing selected
Extra select field attributes
HTML attributes
A (possibly empty) array of editing controls. Each element of this array should be an array('url' => $url, 'icon' => $icon, 'caption' => $caption). $icon is the icon name. Fed to $OUTPUT->pix_url.
A array in which to store children this item has.
You can base your theme on other themes by linking to the other theme as parents. This lets you use the CSS and layouts from the other themes (see $layouts). That makes it easy to create a new theme that is similar to another one but with a few changes. In this theme's CSS you only need to override those rules you want to change.
The names of all the stylesheets from this theme that you would like included, in order. Give the names of the files without .css.
List of style sheets that are included in the text editor bodies. Sheets from parent themes are used automatically and can not be excluded.
The names of all the javascript files this theme that you would like included from head, in order. Give the names of the files without .js.
The names of all the javascript files this theme that you would like included from footer, in order. Give the names of the files without .js.
Which file to use for each page layout.
This is an array of arrays. The keys of the outer array are the different layouts. Pages in Moodle are using several different layouts like 'normal', 'course', 'home', 'popup', 'form', .... The most reliable way to get a complete list is to look at the base theme config.php file. That file also has a good example of how to set this setting.
For each layout, the value in the outer array is an array that describes how you want that type of page to look. For example
$THEME->layouts = array(
// Most pages - if we encounter an unknown or a missing page type, this one is used.
'standard' => array(
'theme' = 'mytheme',
'file' => 'normal.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
),
// The site home page.
'home' => array(
'theme' = 'mytheme',
'file' => 'home.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
),
// ...
);
'theme' name of the theme where is the layout located 'file' is the layout file to use for this type of page. layout files are stored in layout subfolder 'regions' This lists the regions on the page where blocks may appear. For each region you list here, your layout file must include a call to
echo $OUTPUT->blocks_for_region($regionname);
or equivalent so that the blocks are actually visible.
'defaultregion' If the list of regions is non-empty, then you must pick one of the one of them as 'default'. This has two meanings. First, this is where new blocks are added. Second, if there are any blocks associated with the page, but in non-existent regions, they appear here. (Imaging, for example, that someone added blocks using a different theme that used different region names, and then switched to this theme.)
List of skip links, those are needed for accessibility reasons
Javascript code used for initialisation of page, it should be relatively small
List of requested event handlers
Extra modules
List of theme layout options, these are ignored by core. To be used in individual theme layout files only.
Associative array of browser shortnames (as used by check_browser_version) and their minimum required versions
List of RADIUS servers.
List of known attributes.
List of raw attributes.
List of raw vendor specific attributes.
Associative array of table attributes
private
The values passed by the hidden elment
private
Options for the autocomplete input text element
private
Various options to control the element's display.
Currently known options are 'language': date language 'format': Format of the date, based on PHP's date() function. The following characters are recognised in format string: D => Short names of days l => Long names of days d => Day numbers M => Short names of months F => Long names of months m => Month numbers Y => Four digit year y => Two digit year h => 12 hour format H => 23 hour format i => Minutes s => Seconds a => am/pm A => AM/PM 'minYear': Minimum year in year select 'maxYear': Maximum year in year select 'addEmptyOption': Should an empty option be added to the top of each select box? 'emptyOptionValue': The value passed by the empty option. 'emptyOptionText': The text displayed for the empty option. 'optionIncrement': Step to increase the option values by (works for 'i' and 's')
private
Options in different languages
Note to potential translators: to avoid encoding problems please send your translations with "weird" letters encoded as HTML Unicode entities
private
Uploaded file data, from $_FILES
Array of grouped elements
Required elements in this group
Options for all the select elements
Format is a bit more complex as we need to know which options are related to the ones in the previous select:
Ex: // first select $select1[0] = 'Pop'; $select1[1] = 'Classical'; $select1[2] = 'Funeral doom';
// second select $select2[0][0] = 'Red Hot Chil Peppers'; $select2[0][1] = 'The Pixies'; $select2[1][0] = 'Wagner'; $select2[1][1] = 'Strauss'; $select2[2][0] = 'Pantheist'; $select2[2][1] = 'Skepticism';
// If only need two selects
// If you have a third select with prices for the cds $select3[0][0][0] = '15.00$'; $select3[0][0][1] = '17.00$'; etc
// You can now use $sel =& $form->addElement('hierselect', 'cds', 'Choose CD:'); $sel->setOptions(array($select1, $select2, $select3));
private
An array being generated
Array representing current group
Additional style information for different elements
Array containing the templates for customised elements
private
Array containing the templates for group wraps.
These templates are wrapped around group elements and groups' own templates wrap around them. This is set by setGroupTemplate().
private
Array containing the templates for elements within groups
private
Array with HTML generated for group elements
private
Array of element names that indicate the end of a fieldset (a new one will be opened when a the next header element occurs)
private
Array of callbacks
Array is in the format: $_data['rulename'] = array('functionname', 'classname'); If the callback is not a method, then the class name is not set.
private
Whether to use BC mode for specific rules
Previous versions of QF passed element's name as a first parameter to validation functions, but not to validation methods. This behaviour is emulated if you are using 'function' as rule type when registering.
private
Possible operators to use
private
Array of regular expressions
Array is in the format: $_data['rulename'] = 'pattern';
private
Array containing references to used rules
private
Contains the select options
Array containing the form fields
private
Array containing element name to index map
private
Array containing indexes of duplicate elements
private
Array containing required field IDs
private
Array of default form values
private
Array of constant form values
private
Array of submitted form values
private
Array containing the form rules
private
Form rules, global variety
private
Array containing the validation errors
private
Remember parsed If: (RFC2518/9.4) header conditions
Copy of $_SERVER superglobal array
Derived classes may extend the constructor to modify its contents
found properties are collected here
public
Holds DMA -> Metro mapping.
Support for singleton pattern.
Array of child PPS's (only used by Root and Dir PPS's)
Array of PPS's found on the OLE container
An array of expected errors.
private
Array of external sheets
Array of sheet references in the form of REF structures
Array containing references to all of this workbook's worksheets
Array of sheetnames for creating the EXTERNSHEET records
Array containing references to all of this workbook's formats
Array containing the colour palette
Array containing format information for columns
Array containing the selected area for the worksheet
Array containing the panes for the worksheet
Reference to the array containing all the unique strings in the workbook
Merged cell ranges
element stack
private
all character data
private
Mapping from expat handler function to class method.
valid encodings
Key/value pairs of the headers
public
Whether the object represents a valid IRI
private
List of days, calendar day name => ordinal day number in the week
protected
List of months, calendar month name => calendar month number
protected
List of timezones, abbreviation => offset from UTC
protected
Array of user-added callback methods
private
Singleton instances returned by makeInstance, using the class names as array keys
Instances returned by makeInstance, using the class names as array keys
Url parameters as associative array
Username/password array
An array of objects used for recursively deserializing an object.
An array of reference objects
An array of reference objects per amf body
An array of reference strings per amf body
An array of reference class definitions per body
An array of reference class definitions, indexed by classname
Array of Zend_Amf_Value_MessageBody objects
Array of Zend_Amf_Value_MessageHeader objects
Array of dispatchables
Array of classes that can be called without being explicitly loaded
Keys are class names.
Dispatch table of name => method pairs
The arguments to call the mathod with
List of namespaces, as a three-dimensional array. The first dimension represents the namespace prefix, the second dimension represents the minimum major protocol version, and the third dimension is the minimum minor protocol version. Null keys are NOT allowed.
When looking up a namespace for a given prefix, the greatest version number (both major and minor) which is less than the effective version should be used.
Cache of feed entries.
Packages to search for classes when using magic __call method, in order.
Namespaces used for Zend_Gdata_Books
Namespaces used for Zend_Gdata_Calendar
Namespaces used for Zend_Gdata_DublinCore
Namespaces used for Zend_Gdata_Exif
Array of Zend_Gdata_Error objects indexed by error code.
Namespaces used for Zend_Gdata_Gapps
Google Base attribute elements in the 'g' namespace
Namespaces used for Zend_Gdata_Gbase
Namespaces used for Zend_Gdata_Geo
Namespaces used for Zend_Gdata_Photos
An array of all the parts to be sent. Array members are either a MimeFile or a MimeBodyString object.
Query parameters.
List of custom row elements (Zend_Gdata_Spreadsheets_Extension_Custom), indexed by order added to this entry.
List of custom row elements (Zend_Gdata_Spreadsheets_Extension_Custom), indexed by element name.
Nested feed links
Namespaces used for Zend_Gdata_YouTube
Namespaces used for Gdata data
Parameters array
What host/port are we connected to?
List of cURL options that should never be overwritten
Buffer of responses to be returned by the read() method. Can be set using setResponse() and addResponse().
Configuration array, set using the constructor or using ::setConfig()
Associative array of request headers
Associative array of GET parameters
Assiciative array of POST parameters
File upload arrays (used in POST requests)
An associative array, where each element is of the format: 'name' => array('filename.txt', 'text/plain', 'This is the actual file contents')
Array storing cookies
Cookies are stored according to domain and path: $cookies + www.mydomain.com + /
The Zend_Http_Cookie array
List of all known HTTP response codes - used by responseCodeAsText() to translate numeric codes to messages.
The HTTP response headers array
Instance loaded plugin paths
Instance loaded plugins
Instance registry property
Statically loaded plugin path mappings
Statically loaded plugins
Static registry property
Data for the query
Specific Modules to receive RESTful routes
Specific Modules=>Controllers to receive RESTful routes
Class Constructor Args
Optional configuration parameters; accessible via __get and __set()
Array of Zend_Server_Reflection_Methods
Additional arguments to pass to method on invocation
Used to store extra configuration for the method (typically done by the server class, e.g., to indicate whether or not to instantiate a class). Associative array; access is as properties via __get() and __set()
Prototypes
Array of child nodes (if any)
An array that contains all the valid Amazon Ec2 Regions.
The following metrics are available from each EC2 instance.
CPUUtilization: The percentage of allocated EC2 compute units that are currently in use on the instance. This metric identifies the processing power required to run an application upon a selected instance.
NetworkIn: The number of bytes received on all network interfaces by the instance. This metric identifies the volume of incoming network traffic to an application on a single instance.
NetworkOut: The number of bytes sent out on all network interfaces by the instance. This metric identifies the volume of outgoing network traffic to an application on a single instance.
DiskWriteOps: Completed write operations to all hard disks available to the instance. This metric identifies the rate at which an application writes to a hard disk. This can be used to determine the speed in which an application saves data to a hard disk.
DiskReadBytes: Bytes read from all disks available to the instance. This metric is used to determine the volume of the data the application reads from the hard disk of the instance. This can be used to determine the speed of the application for the customer.
DiskReadOps: Completed read operations from all disks available to the instances. This metric identifies the rate at which an application reads a disk. This can be used to determine the speed in which an application reads data from a hard disk.
DiskWriteBytes: Bytes written to all disks available to the instance. This metric is used to determine the volume of the data the application writes onto the hard disk of the instance. This can be used to determine the speed of the application for the customer.
Latency: Time taken between a request and the corresponding response as seen by the load balancer.
RequestCount: The number of requests processed by the LoadBalancer.
HealthyHostCount: The number of healthy instances. Both Load Balancing dimensions, LoadBalancerName and AvailabilityZone, should be specified when retreiving HealthyHostCount.
UnHealthyHostCount: The number of unhealthy instances. Both Load Balancing dimensions, LoadBalancerName and AvailabilityZone, should be specified when retreiving UnHealthyHostCount.
Amazon CloudWatch data for a new EC2 instance becomes available typically within one minute of the end of the first aggregation period for the new instance. You can use the currently available dimensions for EC2 instances along with these metrics in order to refine the slice of data you want returned, such as metric CPUUtilization and dimension ImageId to get all CPUUtilization data for instances using the specified AMI.
Amazon CloudWatch not only aggregates the raw data coming in, it also computes several statistics on the data. The following table lists the statistics that you can request:
Minimum: The lowest value observed during the specified period. This can be used to determine low volumes of activity for your application.
Maximum: The highest value observed during the specified period. You can use this to determine high volumes of activity for your application.
Sum: The sum of all values received (if appropriate, for example a rate would not be summed, but a number of items would be). This statistic is useful for determining the total volume of a metric.
Average: The Average of all values received during the specified period. By comparing this statistic with the minimum and maximum statistics, you can determine the full scope of a metric and how close the average use is to the minimum and the maximum. This will allow you to increase or decrease your resources as needed.
Samples: The count (number) of measures used. This statistic is always returned to show the user the size of the dataset collected. This will allow the user to properly weight the data.
Statistics are computed within a period you specify, such as all CPUUtilization within a five minute period. At a minimum, all data is aggregated into one minute intervals. This is the minimum resolution of the data. It is this data that can be aggregated into larger periods of time that you request.
Aggregate data is generally available from the service within one minute from the end of the aggregation period. Delays in data propagation might cause late or partially late data in some cases. If your data is delayed, you should check the service’s Health Dashboard for any current operational issues with either Amazon CloudWatch or the services collecting the data, such as EC2 or Elastic Load Balancing.
Valid Dimention Keys for getMetricStatistics
ImageId: This dimension filters the data you request for all instances running this EC2 Amazon Machine Image (AMI).
AvailabilityZone: This dimension filters the data you request for all instances running in that EC2 Availability Zone.
AutoScalingGroupName: This dimension filters the data you request for all instances in a specified capacity group. An AutoScalingGroup is a collection of instances defined by customers of the Auto Scaling service. This dimension is only available for EC2 metrics when the instances are in such an AutoScalingGroup.
InstanceId: This dimension filters the data you request for only the identified instance. This allows a user to pinpoint an exact instance from which to monitor data.
InstanceType: This dimension filters the data you request for all instances running with this specified instance type. This allows a user to catagorize his data by the type of instance running. For example, a user might compare data from an m1.small instance and an m1.large instance to determine which has the better business value for his application.
LoadBalancerName: This dimension filters the data you request for the specified LoadBalancer name. A LoadBalancer is represented by a DNS name and provides the single destination to which all requests intended for your application should be directed. This metric allows you to examine data from all instances connected to a single LoadBalancer.
Search parameters
Store for stream wrapper clients
List of Amazon Web Service base URLs, indexed by country code
Array that contains parameters being used by the webservice
protected
Holds error information (e.g., for handling simplexml_load_string() warnings)
protected
Response, Request Classmapping
array with all QuotaModuleIds
array with options for classmapping
possible recurring values
currently supported versions
possible search parameters, incl. default values
possible collapse values
array of accounts
array with Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail elements
possible what values
array of search parameters
array of special chars that are used for counting message length
array of second numbers to be called sequenced
array with conferences ids
array of Zend_Service_DeveloperGarden_ConferenceCall_Participant
array with template ids
internal data object array of elements
array with stored tokens
Field values
Block field values
Array of credentials (username and password) to log into backend server
Parameters for the object
Options for tailoring reCaptcha
See the different options on http://recaptcha.net/apidocs/captcha/client.html
Tags assigned to the link
Tags assigned to the note
List of usernames for users included in the watchlist
A list of weblogs claimed by this author
protected
An associative array of 'fieldName' => 'xmlfieldtag'
protected
An array of Zend_Service_Technorati_Author who claimed this blog
protected
Response Format Types
Types of API methods
Options passed to constructor
Permission set
List of blobs
Stream wrapper clients
Data
Dynamic properties
Where
Order by
Result fields
soap:body operation style options
soap:operation style
Array of SOAP type => PHP class pairings for handling return/incoming values
Registered fault exceptions
SOAP request headers.
Array of SoapHeader objects
Permanent SOAP request headers (shared between requests).
Array of SoapHeader objects
Output SOAP headers.
Array of SoapHeader objects
Arguments to pass to $_class constructor
Typemap of Complex Type => Strategy pairs.
Types defined on schema
Regular expression grammar rules for validation; values added by constructor
Global configuration array
Additional variables available for validation failure messages
Validation failure message template definitions
Array of validation failure messages
Array of validation failure message codes
Callback to checksum function
Note that the characters !"§& are only synonyms
Callback in a call_user_func format
List of allowed CCV lengths
List of accepted CCV provider tags
CCIs which are accepted by validation
Internal file array
If no $_ENV['MAGIC'] is set, try and autodiscover it based on common locations
Internal array of files
Array of valid top-level-domains
Array for valid Idns
IBAN regexes by region
Error messages
Haystack of possible values
internal options
Validation failure message template definitions.
Valid change frequencies
Internal fault codes => messages
Array of headers
Method parameters
XML-RPC type for each param
XML-RPC request params
PHP types => XML-RPC types
An array of options used in the htmleditor
Contains the answers to this lesson_page once loaded
An array of different page type classes
Nested lists to display categories.
of steps that have been added to question attempts in this usage.
of steps that have been modified in their attempt.
An array of calculated scale options to save us generating them for each request.
Options of this type They are general options that any instance of this type would share e.g. API key These options are saved in config_plugin table
list of all the fields which needs to be disabled, if checkbox is checked
Definition at line 70 of file export.php.