alecpl
2010-06-23 b25dfd0913f2ca5666124740c30156fa0a6abaef
program/include/rcube_addressbook.php
@@ -117,7 +117,7 @@
     */
    function set_page($page)
    {
      $this->list_page = (int)$page;
        $this->list_page = (int)$page;
    }
    /**
@@ -128,7 +128,7 @@
     */
    function set_pagesize($size)
    {
      $this->page_size = (int)$size;
        $this->page_size = (int)$size;
    }
    /**
@@ -146,7 +146,7 @@
     */
    function insert($save_data, $check=false)
    {
      /* empty for read-only address books */
        /* empty for read-only address books */
    }
    /**
@@ -158,7 +158,7 @@
     */
    function update($id, $save_cols)
    {
      /* empty for read-only address books */
        /* empty for read-only address books */
    }
    /**
@@ -168,7 +168,7 @@
     */
    function delete($ids)
    {
      /* empty for read-only address books */
        /* empty for read-only address books */
    }
    /**
@@ -176,8 +176,69 @@
     */
    function delete_all()
    {
      /* empty for read-only address books */
        /* empty for read-only address books */
    }
    /**
     * Create a contact group with the given name
     *
     * @param string The group name
     * @return False on error, array with record props in success
     */
    function create_group($name)
    {
        /* empty for address books don't supporting groups */
        return false;
    }
    /**
     * Delete the given group and all linked group members
     *
     * @param string Group identifier
     * @return boolean True on success, false if no data was changed
     */
    function delete_group($gid)
    {
        /* empty for address books don't supporting groups */
        return false;
    }
    /**
     * Rename a specific contact group
     *
     * @param string Group identifier
     * @param string New name to set for this group
     * @return boolean New name on success, false if no data was changed
     */
    function rename_group($gid, $newname)
    {
        /* empty for address books don't supporting groups */
        return false;
    }
    /**
     * Add the given contact records the a certain group
     *
     * @param string  Group identifier
     * @param array   List of contact identifiers to be added
     * @return int    Number of contacts added
     */
    function add_to_group($group_id, $ids)
    {
        /* empty for address books don't supporting groups */
        return 0;
    }
    /**
     * Remove the given contact records from a certain group
     *
     * @param string  Group identifier
     * @param array   List of contact identifiers to be removed
     * @return int    Number of deleted group members
     */
    function remove_from_group($group_id, $ids)
    {
        /* empty for address books don't supporting groups */
        return 0;
    }
}