Decodes DN string encoded with _dn_encode()
string
dn_decode
(string $str)
-
string
$str: Encoded HTML identifier string
HTML-safe DN string encoding
string
dn_encode
(string $str)
Object constructor
rcube_ldap
__construct
(array $p, [boolean $debug = false], [string $mail_domain = null])
-
array
$p: LDAP connection properties
-
boolean
$debug: Enables debug mode
-
string
$mail_domain: Current user mail domain name
Generate missing attributes as configured
void
add_autovalues
(array &$attrs)
-
array
&$attrs: LDAP record attributes
Add the given contact records the a certain group
int
add_to_group
(string $group_id, array|string $contact_ids)
-
string
$group_id: Group identifier
-
array|string
$contact_ids: List of contact identifiers to be added
Redefinition of:
- rcube_addressbook::add_to_group()
- Add the given contact records the a certain group
Bind connection with DN and password
boolean
bind
(string $dn, string $pass)
-
string
$dn: Bind DN
-
string
$pass: Bind password
Count number of available contacts in database
Redefinition of:
- rcube_addressbook::count()
- Count number of available contacts in database
Create a contact group with the given name
mixed
create_group
(string $group_name)
-
string
$group_name: The group name
Redefinition of:
- rcube_addressbook::create_group()
- Create a contact group with the given name
Mark one or more contact records as deleted
boolean
delete
(array $ids, [boolean $force = true])
-
array
$ids: Record identifiers
-
boolean
$force: Remove record(s) irreversible (unsupported)
Redefinition of:
- rcube_addressbook::delete()
- Mark one or more contact records as deleted
Delete the given group and all linked group members
boolean
delete_group
(string $group_id)
-
string
$group_id: Group identifier
Redefinition of:
- rcube_addressbook::delete_group()
- Delete the given group and all linked group members
Get group properties such as name and email address(es)
array
get_group
(string $group_id)
-
string
$group_id: Group identifier
Redefinition of:
- rcube_addressbook::get_group()
- Get group properties such as name and email address(es)
Returns address book name
string
get_name
()
Redefinition of:
- rcube_addressbook::get_name()
- Returns addressbook name (e.g. for addressbooks listing)
Get a specific contact record
mixed
get_record
(mixed $dn, [boolean $assoc = false])
-
mixed
$dn: Record identifier
-
boolean
$assoc: Return as associative array
Redefinition of:
- rcube_addressbook::get_record()
- Get a specific contact record
Get group assignments of a specific contact record
array
get_record_groups
(mixed $contact_id)
-
mixed
$contact_id: Record identifier
Redefinition of:
- rcube_addressbook::get_record_groups()
- Get group assignments of a specific contact record
Create a new contact record
encoded
insert
(array $save_cols)
-
array
$save_cols: Hash array with save data
Redefinition of:
- rcube_addressbook::insert()
- Create a new contact record
Wrapper for ldap_add()
void
ldap_add
( $dn, $entry)
Wrapper for ldap_delete()
void
ldap_delete
( $dn)
Wrapper for ldap_list()
void
ldap_list
( $dn, $filter, [ $attrs = array('')])
Wrapper for ldap_mod_add()
void
ldap_mod_add
( $dn, $entry)
Wrapper for ldap_mod_del()
void
ldap_mod_del
( $dn, $entry)
Wrapper for ldap_mod_replace()
void
ldap_mod_replace
( $dn, $entry)
Wrapper for ldap_rename()
void
ldap_rename
( $dn, $newrdn, [ $newparent = null], [ $deleteoldrdn = true])
-
$dn
-
$newrdn
-
$newparent
-
$deleteoldrdn
List all active contact groups of this source
array
list_groups
([string $search = null], [int $mode = 0])
-
string
$search: Optional search string to match group name
-
int
$mode: Matching mode:
- - partial (*abc*),
- - strict (=),
- - prefix (abc*)
Redefinition of:
- rcube_addressbook::list_groups()
- List all active contact groups of this source
Get all members of the given group
array
list_group_members
(string $dn, [array $count = false], [ $entries = null])
-
string
$dn: Group DN
-
array
$count: Group entries (if called recursively)
-
$entries
List the current set of contact records
array
list_records
([array $cols = null], [int $subset = 0])
-
array
$cols: List of cols to show
-
int
$subset: Only return this number of records
Redefinition of:
- rcube_addressbook::list_records()
- List the current set of contact records
Remove the given contact records from a certain group
int
remove_from_group
(string $group_id, array|string $contact_ids)
-
string
$group_id: Group identifier
-
array|string
$contact_ids: List of contact identifiers to be removed
Redefinition of:
- rcube_addressbook::remove_from_group()
- Remove the given contact records from a certain group
Rename a specific contact group
boolean
rename_group
(string $group_id, string $new_name, string &$new_gid)
-
string
$group_id: Group identifier
-
string
$new_name: New name to set for this group
-
string
&$new_gid: New group identifier (if changed, otherwise don't set)
Redefinition of:
- rcube_addressbook::rename_group()
- Rename a specific contact group
Reset all saved results and search parameters
void
reset
()
Redefinition of:
- rcube_addressbook::reset()
- Reset saved results and search parameters
Bind connection with (SASL-) user and password
boolean
sasl_bind
(string $authc, string $pass, [string $authz = null])
-
string
$authc: Authentication user
-
string
$pass: Bind password
-
string
$authz: Autorization user
Search contacts
array
search
(mixed $fields, mixed $value, [int $mode = 0], [boolean $select = true], [boolean $nocount = false], [array $required = array()])
-
mixed
$fields: The field name of array of field names to search in
-
mixed
$value: Search value (or array of values when $fields is array)
-
int
$mode: Matching mode:
- - partial (*abc*),
- - strict (=),
- - prefix (abc*)
-
boolean
$select: True if results are requested, False if count only
-
boolean
$nocount: (Not used)
-
array
$required: List of fields that cannot be empty
Redefinition of:
- rcube_addressbook::search()
- Search records
Activate/deactivate debug mode
void
set_debug
([boolean $dbg = true])
-
boolean
$dbg: True if LDAP commands should be logged
Setter for the current group
(empty, has to be re-implemented by extending class)
void
set_group
( $group_id)
Redefinition of:
- rcube_addressbook::set_group()
- Setter for the current group
Save a search string for future listings
void
set_search_set
(string $filter)
-
string
$filter: Filter string
Redefinition of:
- rcube_addressbook::set_search_set()
- Save a search string for future listings
Set internal sort settings
void
set_sort_order
(string $sort_col, [string $sort_order = null])
-
string
$sort_col: Sort column
-
string
$sort_order: Sort order
Redefinition of:
- rcube_addressbook::set_sort_order()
- Set internal sort settings
Update a specific contact record
boolean
update
(mixed $id, array $save_cols)
-
mixed
$id: Record identifier
-
array
$save_cols: Hash array with save data
Redefinition of:
- rcube_addressbook::update()
- Update a specific contact record
Check the given data before saving.
If input not valid, the message to display can be fetched using get_error()
boolean
validate
(array &$save_data, [boolean $autofix = false])
-
array
&$save_data: Assoziative array with data to save
-
boolean
$autofix: Try to fix/complete record automatically
Redefinition of:
- rcube_addressbook::validate()
- Check the given data before saving.
Callback for sorting entries
void
_entry_sort_cmp
( $a, $b)
Inherited Methods
Inherited From rcube_addressbook
rcube_addressbook::add_to_group()
rcube_addressbook::close()
rcube_addressbook::compare_search_value()
rcube_addressbook::compose_contact_key()
rcube_addressbook::compose_display_name()
rcube_addressbook::compose_list_name()
rcube_addressbook::count()
rcube_addressbook::create_group()
rcube_addressbook::delete()
rcube_addressbook::delete_all()
rcube_addressbook::delete_group()
rcube_addressbook::get_col_values()
rcube_addressbook::get_error()
rcube_addressbook::get_group()
rcube_addressbook::get_name()
rcube_addressbook::get_record()
rcube_addressbook::get_record_groups()
rcube_addressbook::get_result()
rcube_addressbook::get_search_set()
rcube_addressbook::insert()
rcube_addressbook::insertMultiple()
rcube_addressbook::list_groups()
rcube_addressbook::list_records()
rcube_addressbook::normalize_string()
rcube_addressbook::refresh_search()
rcube_addressbook::remove_from_group()
rcube_addressbook::rename_group()
rcube_addressbook::reset()
rcube_addressbook::search()
rcube_addressbook::set_error()
rcube_addressbook::set_group()
rcube_addressbook::set_page()
rcube_addressbook::set_pagesize()
rcube_addressbook::set_search_set()
rcube_addressbook::set_sort_order()
rcube_addressbook::undelete()
rcube_addressbook::update()
rcube_addressbook::validate()