Changeset 4145 in subversion


Ignore:
Timestamp:
Oct 27, 2010 3:23:57 AM (3 years ago)
Author:
alec
Message:
  • Add rcube_addressbook::get_record_groups() (#1487089)
Location:
trunk/roundcubemail/program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_addressbook.php

    r4015 r4145  
    6565 
    6666    /** 
    67      * List all active contact groups of this source 
    68      * 
    69      * @return array  Indexed list of contact groups, each a hash array 
    70      */ 
    71     function list_groups() { } 
    72  
    73     /** 
    7467     * Search records 
    7568     * 
     
    10093     * @param mixed record identifier(s) 
    10194     * @param boolean True to return record as associative array, otherwise a result set is returned 
     95     * 
    10296     * @return mixed Result object with all record fields or False if not found 
    10397     */ 
     
    131125        $this->page_size = (int)$size; 
    132126    } 
    133  
    134     /** 
    135      * Setter for the current group 
    136      * (empty, has to be re-implemented by extending class) 
    137      */ 
    138     function set_group($gid) { } 
    139127 
    140128    /** 
     
    181169 
    182170    /** 
     171     * Setter for the current group 
     172     * (empty, has to be re-implemented by extending class) 
     173     */ 
     174    function set_group($gid) { } 
     175 
     176    /** 
     177     * List all active contact groups of this source 
     178     * 
     179     * @return array  Indexed list of contact groups, each a hash array 
     180     */ 
     181    function list_groups() 
     182    { 
     183        /* empty for address books don't supporting groups */ 
     184        return array(); 
     185    } 
     186 
     187    /** 
    183188     * Create a contact group with the given name 
    184189     * 
     
    191196        return false; 
    192197    } 
    193      
     198 
    194199    /** 
    195200     * Delete the given group and all linked group members 
     
    203208        return false; 
    204209    } 
    205      
     210 
    206211    /** 
    207212     * Rename a specific contact group 
     
    216221        return false; 
    217222    } 
    218      
     223 
    219224    /** 
    220225     * Add the given contact records the a certain group 
     
    222227     * @param string  Group identifier 
    223228     * @param array   List of contact identifiers to be added 
    224      * @return int    Number of contacts added  
     229     * @return int    Number of contacts added 
    225230     */ 
    226231    function add_to_group($group_id, $ids) 
     
    229234        return 0; 
    230235    } 
    231      
     236 
    232237    /** 
    233238     * Remove the given contact records from a certain group 
     
    242247        return 0; 
    243248    } 
     249 
     250    /** 
     251     * Get group assignments of a specific contact record 
     252     * 
     253     * @param mixed Record identifier 
     254     * 
     255     * @return array List of assigned groups as ID=>Name pairs 
     256     * @since 0.5-beta 
     257     */ 
     258    function get_record_groups($id) 
     259    { 
     260        /* empty for address books don't supporting groups */ 
     261        return array(); 
     262    } 
    244263} 
     264 
  • trunk/roundcubemail/program/include/rcube_contacts.php

    r4121 r4145  
    356356 
    357357    /** 
    358      * Get group assignments of a specific contacr record 
     358     * Get group assignments of a specific contact record 
    359359     * 
    360360     * @param mixed Record identifier 
    361      * @param array List of assigned groups as ID=>Name pairs 
     361     * @return array List of assigned groups as ID=>Name pairs 
    362362     */ 
    363363    function get_record_groups($id) 
     
    385385     * Create a new contact record 
    386386     * 
    387      * @param array Assoziative array with save data 
     387     * @param array Associative array with save data 
    388388     * @return integer|boolean The created record ID on success, False on error 
    389389     */ 
Note: See TracChangeset for help on using the changeset viewer.