From: janw Date: Wed, 28 Sep 2005 20:02:17 +0000 (+0000) Subject: Updated Documentation. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0580435a641f9a3c29c67120139df755c66a39a;p=gosa.git Updated Documentation. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1439 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_test.inc b/include/functions_test.inc index 23141788d..01e513475 100644 --- a/include/functions_test.inc +++ b/include/functions_test.inc @@ -1,7 +1,7 @@ $function) { $match= array(); @@ -332,9 +343,9 @@ function extract_php_functions($string) { } /** - * Extracts function-calls in php-code - * @param $string php-code to extract function calls from - * @return array of functions called + * Extracts function-definitions from php-code + * @param $string php-code to extract function definitions from + * @return array of functions defined */ function extract_user_functions($string) { $rx_name="[A-Za-z_][A-Za-z0-9_+-]*"; @@ -369,11 +380,12 @@ function get_php_code($string) { } /** + * Removes all double and single quotes strings from sourcecode. * Returns 'print ();' for 'print ("hello world!\n");' * AND: - * Returns '$message= sprintf(_()...); for - * $message= sprintf(_("Command '%s', specified as POSTREMOVE for plugin '%s' doesn't seem to exist.")...); - * Note the "doesn't" + * Returns '$message= sprintf(_()$foo,$bar); for + * $message= sprintf(_("Command '%s', specified as POSTREMOVE for plugin '%s' doesn't seem to exist.")$foo,$bar); + * (Note the "doesn't") * @param $string code with strings * @return code with strings removed */ @@ -425,7 +437,7 @@ function remove_strings($string) { } /** - * Iteratively scans directory $dir for files (filenames) matching regular expression $pattern + * Scans directory $dir for files (filenames) matching regular expression $pattern * @param $dir Initial Directory to start scan * @param $pattern Regex-Pattern to match on files to scan * @param $skip_dirs Regex-Patten to match on directories to skip @@ -452,6 +464,9 @@ function list_directory($dir, $pattern, $skip_dirs) { return $file_list; } +/** + * 'Flats' a multi-dimensional array. Keys are newly (incrementally) created by PHP. + */ function array_values_recursive($array) { $arrayValues = array();