Skip to content

Commit

Permalink
"MDL-17391, document file_type_to_ext class"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 13, 2009
1 parent 0b823d3 commit f9fd0be
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions lib/filelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2752,17 +2752,20 @@ public function refresh(){
}

/**
* @todo Document this class
* This class is used to parse lib/file/file_types.mm which help get file
* extensions by file types.
* The file_types.mm file can be edited by freemind in graphic environment.
*
* @package moodlecore
* @subpackage file
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @copyright 2009 Dongsheng Cai <dongsheng@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class file_type_to_ext {
/**
* @todo Document this function
* @global object
* Check file_types.mm file, setup variables
*
* @global object $CFG
* @param string $file
*/
public function __construct($file = '') {
Expand All @@ -2777,7 +2780,8 @@ public function __construct($file = '') {
}

/**
* @todo Document this function
* A private function to browse xml nodes
*
* @param array $parent
* @param array $types
*/
Expand All @@ -2798,7 +2802,8 @@ private function _browse_nodes($parent, $types) {
}

/**
* @todo Document this function
* A private function to select text nodes
*
* @param array $parent
*/
private function _select_nodes($parent){
Expand All @@ -2813,7 +2818,8 @@ private function _select_nodes($parent){


/**
* @todo Document this function
* Get file extensions by file types names.
*
* @param array $types
* @return mixed
*/
Expand Down

0 comments on commit f9fd0be

Please sign in to comment.