Changeset 314 for libjquerysuggest
- 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)
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;
