Changeset 314

Show
Ignore:
Timestamp:
05/30/08 23:42:21 (6 months ago)
Author:
dramirez
Message:

Role plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libjquerysuggest/releases/1.0/lib.php

    r313 r314  
    3939 
    4040} 
    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 */ 
    4249function jquerysuggest_register_function($context,$function){ 
    4350  global $CFG; 
     
    5158} 
    5259 
     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 */ 
    5369function jquerysuggest_register_field($context,$field,$callback="",$input=false){ 
    5470  global $CFG; 
     
    6884} 
    6985 
     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 */ 
    7092function jquery_suggest_users($q){ 
    7193  global $CFG; 
     
    82104} 
    83105 
     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 */ 
    84112function jquery_suggest_groups($q){ 
    85113  global $CFG; 
     
    96124} 
    97125 
     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 */ 
    98132function jquery_suggest_users_groups($q){ 
    99133  global $CFG; 
  • libjquerysuggest/trunk/lib.php

    r313 r314  
    3939 
    4040} 
    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 */ 
    4249function jquerysuggest_register_function($context,$function){ 
    4350  global $CFG; 
     
    5158} 
    5259 
     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 */ 
    5369function jquerysuggest_register_field($context,$field,$callback="",$input=false){ 
    5470  global $CFG; 
     
    6884} 
    6985 
     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 */ 
    7092function jquery_suggest_users($q){ 
    7193  global $CFG; 
     
    82104} 
    83105 
     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 */ 
    84112function jquery_suggest_groups($q){ 
    85113  global $CFG; 
     
    96124} 
    97125 
     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 */ 
    98132function jquery_suggest_users_groups($q){ 
    99133  global $CFG;