Moodle  2.2.1
http://www.collinsharper.com
Todo List
Global $min_errorLogger
cache system does not have error logging yet.
Global _fix_course_cats ($children, &$sortorder, $parent, $depth, $path, &$fixcontexts)
Document the arguments of this function better
Global admin_setting_configmulticheckbox ()
Check if this function is still required content commented out only returns true
Global admin_setting_configmulticheckbox ($data, $query='')
Add vartype handling to ensure $data is an array
Global admin_setting_configmultiselect ($data, $query='')
Add vartype handling to ensure $data is an array
Global admin_setting_configpasswordunmask ($data, $query='')
Make javascript available through newer methods if possible
Global admin_setting_configselect_with_advanced ($data)
Add vartype handling to ensure $data is an array
Global admin_setting_configtext_with_advanced ($data)
Add vartype handling to ensure $data is an array
Global admin_setting_courselist_frontpage ($data, $query='')
Add vartype handling to make sure $data is an array
Global admin_setting_gradecat_combo ($data, $query='')
Add vartype handling to ensure $data is array
Global admin_setting_gradecat_combo ($data)
Add vartype handling to ensure $data is array
Global admin_setting_ldap_rolemapping ($data, $query='')
Add vartype handling to ensure $data is an array
Global ADODB_Active_Record ($where=null, $bindarr=false)

Improve by storing once and for all in table metadata

Also re-use info for hasManyId

Global adodb_GetActiveRecordsClass (&$db, $class, $tableObj, $whereOrderBy, $bindarr, $primkeyArr, $extra, $relations)

Improve by storing once and for all in table metadata

Also re-use info for hasManyId

Global apd_get_profiling ()
Document this function linux people
Global assignment_base$context
document this var
Global assignment_base$defaultformat
document this var
Global assignment_base (&$mform)
Document this function
Global assignment_get_participants ($assignmentid)
: deprecated - to be deleted in 2.2
Global auth_plugin_base ()
Document this function
Class base_setting_ui
extend as required for restore
Global blocks_remove_inappropriate ($course)
Write/Fix this function. Currently returns immediately
Global can_use_html_editor ()
Deprecate: eradicate completely, replace with something else in the future
Global chat_portfolio_caller ()
Document this function
Global check_php_version ($version='5.2.4')
Check PHP version being required here is it too low?
Global choice_get_participants ($choiceid)
: deprecated - to be deleted in 2.2
Global choose_from_menu_nested ($options, $name, $selected='', $nothing='choose', $script= '', $nothingvalue=0, $return=false, $disabled=false, $tabindex=0)
Add datatype handling to make sure $options is an array
Global clam_log_upload ($newfilepath, $course=null, $nourl=false)
Finish documenting this function
Namespace core

Document this class

Document this class

will be out in 2.3, see MDL-29996

filter

Global course_scale_used ($courseid, $scaleid)
Finish documenting this function
Global create_user_record ($username, $password, $auth= 'manual')
Outline auth types and provide code example
Global data_get_participants ($dataid)
: deprecated - to be deleted in 2.2
Global detect_munged_arguments ($string, $allowdots=1)
Finish documenting this function - more detail needed in description as well as details on arguments
Global display_size ($size)
Finish documenting this function. Verify return type.
Global draw_rand_array ($array, $draws)
Finish documenting this function
Global eaccelerator ($key)
Document this function
Global eaccelerator ()
Document this function
Global eaccelerator ($key)
Document this function
Global eaccelerator ($key, $value, $ttl=0)
Document this function
Global editorshortcutshelpbutton ()
Write code into this function! detect current editor and print correct info object
Global emoticonhelpbutton ($form, $field, $return=false)
Finish documenting this function
Global endecrypt ($pwd, $data, $case)
Finish documenting this function
Global environment_results ($string, $class)
Document this function
Global FakeDBUnitTestCase ()
Improve detection of incorrectly built DB test tables (e.g. detect version discrepancy and offer to upgrade/rebuild)
Global feedback_get_participants ($feedbackid)
: deprecated - to be deleted in 2.2
Global file_extension_icon ($filename, $size=NULL)

When an $OUTPUT->icon method is available this function should be altered to conform with that.

Implement $size

Global file_mimetype_icon ($mimetype, $size=NULL)
When an $OUTPUT->icon method is available this function should be altered to conform with that.
Global filter_manager ($text, $filterchain, array $options=array())
Document this function
Global filter_manager ($context)
Document this function
Global filter_manager ($context)
Document this function
Global filter_manager ($context)
Document this function
Global filter_remove_duplicates ($linkarray)
Document this function
Global find_day_in_month ($startday, $weekday, $month, $year)
Document what this function does
Global folder_get_participants ($folderid)
: deprecated - to be deleted in 2.2
Global format_text ($text, $format=FORMAT_MOODLE, $options=NULL, $courseid_do_not_use=NULL)
Finish documenting this function
Global forum_clean_search_terms ($words, $prefix='')
Take the hardcoded limit out of this function and put it into a user-specified parameter
Global forum_get_participants ($forumid)
: deprecated - to be deleted in 2.2
Global forum_get_recent_mod_activity (&$activities, &$index, $timestart, $courseid, $cmid, $userid=0, $groupid=0)
Document this functions args object object object object
Global forum_get_user_discussions ($courseid, $userid, $groupid=0)
Remove this function if no longer used object object
Global forum_menu_list ($course)
Document this function
Global forum_print_big_search_form ($course)
Document this function
Global forum_print_posts_nested ($course, &$cm, $forum, $discussion, $parent, $reply, $forumtracked, $posts)
Document this function object object
Global forum_print_posts_threaded ($course, &$cm, $forum, $discussion, $parent, $depth, $reply, $forumtracked, $posts)
Document this function
Global forum_print_recent_mod_activity ($activity, $courseid, $detail, $modnames, $viewfullnames)
Document this function object
Global get_directory_list ($rootdir, $excludefiles='', $descend=true, $getdirs=false, $getfiles=true)
Finish documenting this function. Add examples of $excludefile usage.
Global get_directory_size ($rootdir, $excludefile='')
Finish documenting this function
Global get_logs ($select, array $params=null, $order='l.time DESC', $limitfrom='', $limitnum='', &$totalcount)
Finish documenting this function
Global get_logs_usercourse ($userid, $courseid, $coursestart)
Finish documenting this function
Global get_max_upload_file_size ($sitebytes=0, $coursebytes=0, $modulebytes=0)
Finish documenting this function
Global get_max_upload_sizes ($sitebytes=0, $coursebytes=0, $modulebytes=0)
Finish documenting this function
Global get_users_listing ($sort='lastaccess', $dir='ASC', $page=0, $recordsperpage=0, $search='', $firstinitial='', $lastinitial='', $extraselect='', array $extraparams=null, $extracontext=null)
Finish documenting this function
Global getweek ($startdate, $thedate)
Finish documenting this function
Global global_navigation (navigation_node $sectionnode, $sectionnumber, $activities)
2.2 - $activities should always be an array and we should no longer check for it being a course_modinfo object
Global glossary_get_participants ($glossaryid)
: deprecated - to be deleted in 2.2
Global glossary_print_entry_attachment ($entry, $cm, $format=NULL, $align="right", $insidetable=true)
Document this function
Global grade_format_gradevalue_letter ($value, $grade_item)
Document this function
Global grade_format_gradevalue_percentage ($value, $grade_item, $decimals, $localized)
Document this function
Global grade_format_gradevalue_real ($value, $grade_item, $decimals, $localized)
Document this function
Class HTMLPurifier
We need an easier way to inject strategies using the configuration object.
Global HTMLPurifier_AttrDef_CSS_Composite$defs
Make protected
Global HTMLPurifier_AttrDef_CSS_Multiple$max
Make protected
Global HTMLPurifier_AttrDef_CSS_Multiple$single
Make protected
Global HTMLPurifier_AttrDef_Enum$valid_values
Make protected
Class HTMLPurifier_Config
Reconsider some of the public member variables
Class HTMLPurifier_ContentSets
Unit test
Global HTMLPurifier_CSSDefinition ($config)
Refactor duplicate elements into common class (probably using composition, not inheritance).
Class HTMLPurifier_DefinitionCache

Create a separate maintenance file advanced users can use to cache their custom HTMLDefinition, which can be loaded via a configuration directive

Implement memcached

Global HTMLPurifier_DefinitionCache_Serializer ($config)
Make protected
Global HTMLPurifier_DefinitionCache_Serializer ($config)
Make protected
Global HTMLPurifier_DefinitionCache_Serializer ($config)
Make protected
Global HTMLPurifier_Filter_ExtractStyleBlocks ($html, $config, $context)
Extend to indicate non-text/css style blocks
Class HTMLPurifier_Generator

Refactor interface so that configuration/context is determined upon instantiation, no need for messy generateFromTokens() calls

Make some of the more internal functions protected, and have unit tests work around that

Global HTMLPurifier_Generator ($string, $quote=null)
This really ought to be protected, but until we have a facility for properly generating HTML here w/o using tokens, it stays public.
Global HTMLPurifier_HTMLDefinition ($list)
Give this its own class, probably static interface
Class HTMLPurifier_HTMLModule
Consider making some member functions protected
Class HTMLPurifier_HTMLModule_Tidy
Figure out how to protect some of these methods/properties
Global HTMLPurifier_HTMLModule_Tidy ($config)
Wildcard matching and error reporting when an added or subtracted fix has no effect.
Class HTMLPurifier_Injector
Allow injectors to request a re-run on their output. This would help if an operation is recursive.
Class HTMLPurifier_Injector_AutoParagraph

Ensure all states are unit tested, including variations as well.

Make a graph of the flow control for this Injector.

Global HTMLPurifier_Language$_loaded
Make it private, fix usage in HTMLPurifier_LanguageTest
Global HTMLPurifier_Language ($key, $args=array())
Implement conditionals? Right now, some messages make reference to line numbers, but those aren't always available
Class HTMLPurifier_LanguageFactory
Serialized cache for languages
Global HTMLPurifier_Lexer ($html)
Consider making protected
Global HTMLPurifier_Lexer ($html, $config, $context)
Consider making protected
Class HTMLPurifier_Lexer_DirectLex
Reread XML spec and document differences.
Class HTMLPurifier_Lexer_PEARSax3
Generalize so that XML_HTMLSax is also supported.
Class HTMLPurifier_Printer_ConfigForm
Rewrite to use Interchange objects
Global HTMLPurifier_Printer_HTMLDefinition ($array)
Also add information about internal state
Class HTMLPurifier_Strategy_FixNesting
Enable nodes to be bubbled out of the structure.
Class HTMLPurifier_TokenFactory
Port DirectLex to use this
Class HTMLPurifier_URIScheme_mailto

Validate the email address

Filter allowed query parameters

Global ImageCopyBicubic ($dst_img, $src_img, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
Finish documenting this function
Global imscp_get_participants ($imscpid)
: deprecated - to be deleted in 2.2
Global is_in_popup ()
Use a central function to create the popup calls all over Moodle and In the moment only works with resources and probably questions.
Global isediting ()
Deprecated function remove when ready
Global label_get_participants ($labelid)
: deprecated - to be deleted in 2.2
Global lang_installer ($langcode= '')
Moodle major version is hardcoded here, should be obtained from version.php or so
Global lesson_get_participants ($lessonid)
: deprecated - to be deleted in 2.2
Global make_grades_menu ($gradingtype)
Finish documenting this function or better deprecated this completely!
Global make_timestamp ($year, $month=1, $day=1, $hour=0, $minute=0, $second=0, $timezone=99, $applydst=true)
Finish documenting this function
Global make_unique_id_code ($extra='')
Finish documenting this function
Global message_get_my_providers ()
Remove in 2.2
Global message_get_participants ()
: deprecated - to be deleted in 2.2
Namespace Minify
unit tests, $options docs
Global Minify_Controller_Page ($options)
Add 'file' option to read HTML file.
Global mnetservice_enrol ()

once the MNet core is refactored this may be part of a parent class

the name of the service should be changed to the name of this plugin

Global mnetservice_enrol ()

once the MNet core is refactored this may be part of a parent class

the name of the service should be changed to the name of this plugin

Global mnetservice_enrol ()
move this to some parent class once we have such
Global mod_workshop_renderer ($assessment, $shownames, array $userinfo, $separator)
Highlight the nulls
Global moodle1_assignment_subplugin_handler ($data)
sub paths containing subplugindata isn't handed through).
Class moodle1_files_handler
migrate site_files
Global moodle1_gradebook_handler ()
Global moodle1_handlers_factory ($type, moodle1_converter $converter)
ask mod's subplugins
Global moodle_process_email ($modargs, $body)
Finish documenting this function
Global moodle_setlocale ($locale='')
Finish documenting this function
Global moodle_strtolower ($string, $encoding='')
Remove this function when no longer in use
Namespace moodlecore

add code that actually tests moodle sessions, the old one only tested PHP sessions used from installer, not the real moodle sessions

Global navmenulist ($course, $sections, $modinfo, $strsection, $strjumpto, $width=50, $cmid=0)
Finish documenting this function
Global p ($var, $obsolete=false)
Remove obsolete param $obsolete if not used anywhere
Global page_get_participants ($pageid)
: deprecated - to be deleted in 2.2
Global page_id_and_class (&$getid, &$getclass)
Remove this deprecated function when no longer used
Global PHPMailer ($name, $value= '')
Should this not be using __set() magic function?
Global plugin_callback ($type, $name, $feature, $action, $params=null, $default=null)
Decide about to deprecate and drop plugin_callback() - MDL-30743
Global plugin_manager ()
we might want to specify just a single plugin type to work with
Global portfolio_cron ()
add hooks in the plugins - either per instance or per plugin
Global portfolio_instances ($visibleonly=true, $useronly=true)
check capabilities here - see MDL-15768
Global print_grade_menu ($courseid, $name, $current, $includenograde=true, $return=false)

Finish documenting this function

Deprecate: this is only used in a few contrib modules

Global print_password_policy ()
this should be handled by a function/method in the language pack library once we have a support for it $CFG
Global print_side_block_start ($heading='', $attributes=array())
Finish documenting this function
Global quiz_get_participants ($quizid)
: deprecated - to be deleted in 2.2
Global rc4decrypt ($data)
Finish documenting this function
Global rc4encrypt ($data)
Finish documenting this function
Global resource_get_participants ($resourceid)
: deprecated - to be deleted in 2.2
Global s ($var, $obsolete=false)
Remove obsolete param $obsolete if not used anywhere
Namespace SimplePie
phpDoc comments
Global SimplePie ()

If we have a perm redirect we should return the new URL

When we make the above change, let's support <itunes:new-feed-url> as well

Also, |atom:link|=self

Global SIMPLEPIE_BUILD
Hardcode for release (there's no need to have to call SimplePie_Misc::parse_date() only every load of simplepie.inc)
Global SimplePie_Enclosure ($options= '', $native=false)
If the dimensions for media:content are defined, use them when width/height are set to 'auto'.
Class SimplePie_File
Move to properly supporting RFC2616 (HTTP/1.1)
Global SimplePie_Item ($key=0, $prefer=null)
Add ability to prefer one type of content over another (in a media group).
Global SimplePie_Item ()

Add support for end-user defined sorting of enclosures by type/handler (so we can prefer the faster-loading FLV over MP4).

If an element exists at a level, but it's value is empty, we should fall back to the value from the parent (if it exists).

Global SimplePie_Misc ($data)
Add support for EBCDIC
Class SimplePie_Sanitize
Move to using an actual HTML parser (this will allow tags to be properly stripped, and to switch between HTML and XHTML), this will also make it easier to shorten a string while preserving HTML tags
Global survey_get_participants ($surveyid)
: deprecated - to be deleted in 2.2
Global survey_print_multi ($question)
Check this function
Global t3lib_div ($verNumberStr)
Still needs a function to convert versions to branches
Global t3lib_div ($theFile)
Possible improvement: Should it rawurldecode the string first to check if any of these characters is encoded ?
Global TAG_MAX_LENGTH
define(TAG_MAX_LENGTH) this is not correct, varchar(255) are 255 unicode chars ;-)
Global traverse_xmlize ($array, $arrName= 'array', $level=0)
Finish documenting this function
Global truncate_userinfo ($info)
Add vartype handling to ensure $info is an array
Global upload_manager (&$file)
Finish documenting this function
Global url_get_participants ($urlid)
: deprecated - to be deleted in 2.2
Global user_delete_user ($user)
Decide if this transaction is really needed (look for internal TODO:)
Global usergetdate ($time, $timezone=99)
Finish documenting this function HOURSECS
Global wiki_cron ()
Finish documenting this function
Global wiki_get_participants ($wikiid)
: deprecated - to be deleted in 2.2
Global wiki_scale_used ($wikiid, $scaleid)
Finish documenting this function
Global wiki_user_complete ($course, $user, $mod, $wiki)
Finish documenting this function
Global wiki_user_outline ($course, $user, $mod, $wiki)
Finish documenting this function
Global workshop ($musthavesubmission=true)
handle with limits and groups
Global workshop ($musthavesubmission=false)
handle with limits and groups
Global workshop_cron ()
Finish documenting this function
Class workshop_evaluation
the final interface is not decided yet as we have only one implementation so far
Global workshop_get_participants ($workshopid)
: deprecated - to be deleted in 2.2
Namespace XML_Parser

create XML_Parser_Namespace to parse documents with namespaces

create XML_Parser_Pull

Tests that need to be made:

  • mixing character encodings
  • a test using all expat handlers
  • options (folding, output charset)
Global XML_Parser_Error ($msgorparser= 'unknown error', $code=0, $mode=PEAR_ERROR_RETURN, $level=E_USER_NOTICE)
PEAR CS - can't meet 85char line limit without arg refactoring
Namespace Zend_Amf

Implement Typed Object Class Mapping

Class could be implemented as Factory Class with each data type it's own class

Parse_Amf0

readObject to handle Typed Objects

readXMLStrimg to be implemented.

Class could be implemented as Factory Class with each data type it's own class.

Parse_Amf3

PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace

Parse

Currently not checking if the object needs to be Type Mapped to a server object.

Make the reflection methods cache and autoload.

Server

Global Zend_Amf_Parse_Amf0_Deserializer ()
As of Flash Player 9 there is not support for mixed typed arrays so we handle this as an object. With the introduction of vectors in Flash Player 10 this may need to be reconsidered.
Global Zend_Amf_Parse_Amf0_Deserializer ()
implement Typed Class mapping
Global Zend_Amf_Parse_Amf3_Deserializer ()
Rather than using an array of traitsInfo create Zend_Amf_Value_TraitsInfo
Global Zend_Amf_Server (Zend_Amf_Request $request)

should implement and SPL observer pattern for custom AMF headers

DescribeService support

Global Zend_Amf_Util_BinaryStream ($length)
Should check that there are enough bytes left in the stream we are about to read.
Global Zend_Amf_Util_BinaryStream ()
This could use the unpack() w/ S,n, or v
Global Zend_Gdata_Docs ($folderName, $folderResourceId=null)
ZF-8732: This should return a *subclass* of Zend_Gdata_Entry, but the appropriate type doesn't exist yet.
Global Zend_Http_Client ($user, $password, $type=self::AUTH_BASIC)
Implement digest authentication
Global Zend_Http_Cookie ($name, $value, $domain, $expires=null, $path=null, $secure=false)
Add validation of each one of the parameters (legal domain, etc.)
Global Zend_Http_CookieJar (Zend_Http_Response $response, $ref_uri)
Add the $uri functionality.
Global Zend_Mime ($str, $encoding, $EOL=self::LINEEND)
7Bit and 8Bit is currently handled the same way.
Global Zend_Mime_Message (Zend_Mime_Part $part)
check for duplicate object handle
Global Zend_Mime_Message ($message, $boundary, $EOL=Zend_Mime::LINEEND)
check for characterset and filename
Global Zend_Mime_Part ()

setters/getters

error checking for setting $type

error checking for setting $encoding

Global Zend_Rest_Server ($functions)
Implement
Global Zend_Rest_Server ($mode)
Implement
Global Zend_Server_Interface ($mode)
Determine how to implement this
Global Zend_Service_Delicious ()
replace strtotime() with Zend_Date equivalent
Global Zend_Service_Delicious_Post (DOMElement $node)
replace strtotime() with Zend_Date equivalent
Global Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponse (Zend_Service_DeveloperGarden_Response_LocalSearch_LocalSearchResponseType $response)
implement special result methods
Global Zend_Service_DeveloperGarden_Response_SecurityTokenServer_GetTokensResponse ()
implement the true token validation check
Global Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse ()
implement the true token validation check
Global Zend_Service_Flickr (array $options)
The following does not do anything [yet], so it is commented out.
Global Zend_Service_Flickr (array $options)
The following does not do anything [yet], so it is commented out.
Global Zend_Service_Flickr (array $options)
The following does not do anything [yet], so it is commented out.
Global Zend_Service_Technorati (array $options)
support for Zend_Uri_Http
Global Zend_Service_Technorati_TagResultSet (DomDocument $dom, $options=array())
Validate the following assertion
Global Zend_Soap_AutoDiscover ($type)
Exception throwing may be more correct
Global Zend_Soap_Wsdl ($name, $uri, $strategy=true)
change DomDocument object creation from cparsing to construxting using API It also should authomatically escape $name and $uri values if necessary
Global Zend_Soap_Wsdl ($strategy)
Boolean is for backwards compability with extractComplexType object var. Remove it in later versions.
Global Zend_Soap_Wsdl_Strategy_DefaultComplexType ($type)
check if 'xsd:element' must be used here (it may not be compatible with using 'complexType' node for describing other classes used as attribute types for current class
 All Data Structures Namespaces Files Functions Variables Enumerations