Changeset 314
- Timestamp:
- 05/30/08 23:42:21 (6 months ago)
- Files:
-
- libjquerysuggest/releases/1.0/lib.php (modified) (5 diffs)
- libjquerysuggest/trunk/lib.php (modified) (5 diffs)
- role (added)
- role/releases (added)
- role/releases/1.0 (added)
- role/releases/1.0/README.txt (added)
- role/releases/1.0/config.php (added)
- role/releases/1.0/css.css (added)
- role/releases/1.0/js (added)
- role/releases/1.0/js/roles.js (added)
- role/releases/1.0/lib (added)
- role/releases/1.0/lib.php (added)
- role/releases/1.0/lib/role_management.php (added)
- role/releases/1.0/lib/role_users.php (added)
- role/releases/1.0/mysql.sql (added)
- role/releases/1.0/plugin.info (added)
- role/releases/1.0/role_actions.php (added)
- role/releases/1.0/roles.php (added)
- role/releases/1.0/templates (added)
- role/releases/1.0/templates/role_management.html (added)
- role/releases/1.0/templates/role_users.html (added)
- role/releases/1.0/user_roles.php (added)
- role/trunk (added)
- role/trunk/README.txt (added)
- role/trunk/config.php (added)
- role/trunk/css.css (added)
- role/trunk/js (added)
- role/trunk/js/roles.js (added)
- role/trunk/lib (added)
- role/trunk/lib.php (added)
- role/trunk/lib/role_management.php (added)
- role/trunk/lib/role_users.php (added)
- role/trunk/mysql.sql (added)
- role/trunk/plugin.info (added)
- role/trunk/role_actions.php (added)
- role/trunk/roles.php (added)
- role/trunk/templates (added)
- role/trunk/templates/role_management.html (added)
- role/trunk/templates/role_users.html (added)
- role/trunk/user_roles.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libjquerysuggest/releases/1.0/lib.php
r313 r314 39 39 40 40 } 41 41 /** 42 * Register a suggest function those functions must to have the following contract 43 * string function($q) 44 * The result string must have JSON syntaxt or text 45 * 46 * @param string $context Context name 47 * @param string $function Function to be called for this context 48 */ 42 49 function jquerysuggest_register_function($context,$function){ 43 50 global $CFG; … … 51 58 } 52 59 60 /** 61 * Register a field to use the suggest feature 62 * 63 * @param string $context Context that would be used for the field 64 * @param string $field field name 65 * @param string $callback Callback JavaScript function to be called when the suggestion is selected 66 * @param boolean $input If the specified field is a 'suggest' field 67 * @return boolean 68 */ 53 69 function jquerysuggest_register_field($context,$field,$callback="",$input=false){ 54 70 global $CFG; … … 68 84 } 69 85 86 /** 87 * Suggestion function that suggest site users 88 * 89 * @param string $q String query 90 * @return string the list of users would have a name that starts by $q 91 */ 70 92 function jquery_suggest_users($q){ 71 93 global $CFG; … … 82 104 } 83 105 106 /** 107 * Suggestion function that suggest site groups 108 * 109 * @param string $q String query 110 * @return string the list of groups would have a name that starts by $q 111 */ 84 112 function jquery_suggest_groups($q){ 85 113 global $CFG; … … 96 124 } 97 125 126 /** 127 * Suggestion function that suggest site users and groups 128 * 129 * @param string $q String query 130 * @return string the list of users and groups would have a name that starts by $q 131 */ 98 132 function jquery_suggest_users_groups($q){ 99 133 global $CFG; libjquerysuggest/trunk/lib.php
r313 r314 39 39 40 40 } 41 41 /** 42 * Register a suggest function those functions must to have the following contract 43 * string function($q) 44 * The result string must have JSON syntaxt or text 45 * 46 * @param string $context Context name 47 * @param string $function Function to be called for this context 48 */ 42 49 function jquerysuggest_register_function($context,$function){ 43 50 global $CFG; … … 51 58 } 52 59 60 /** 61 * Register a field to use the suggest feature 62 * 63 * @param string $context Context that would be used for the field 64 * @param string $field field name 65 * @param string $callback Callback JavaScript function to be called when the suggestion is selected 66 * @param boolean $input If the specified field is a 'suggest' field 67 * @return boolean 68 */ 53 69 function jquerysuggest_register_field($context,$field,$callback="",$input=false){ 54 70 global $CFG; … … 68 84 } 69 85 86 /** 87 * Suggestion function that suggest site users 88 * 89 * @param string $q String query 90 * @return string the list of users would have a name that starts by $q 91 */ 70 92 function jquery_suggest_users($q){ 71 93 global $CFG; … … 82 104 } 83 105 106 /** 107 * Suggestion function that suggest site groups 108 * 109 * @param string $q String query 110 * @return string the list of groups would have a name that starts by $q 111 */ 84 112 function jquery_suggest_groups($q){ 85 113 global $CFG; … … 96 124 } 97 125 126 /** 127 * Suggestion function that suggest site users and groups 128 * 129 * @param string $q String query 130 * @return string the list of users and groups would have a name that starts by $q 131 */ 98 132 function jquery_suggest_users_groups($q){ 99 133 global $CFG;
