Property | Type | Description | |
---|---|---|---|
$_contentType | |||
$_extension | |||
$_mozillaAttr | array | Useful Mozilla address book attribute names. | |
$_turbaAttr | array | Useful Turba address book attribute names. | |
$_turbaMozillaMap | array | Turba address book attribute names and the corresponding Mozilla name. |
Method | Description | |
---|---|---|
exportData ( array $data, boolean $header = false ) : string | Builds a LDIF file from a given data structure and returns it as a string. | |
exportFile ( string $filename, array $data, boolean $header = false ) | Builds a LDIF file from a given data structure and triggers its download. | |
importData ( $contents, $header = false ) | ||
nextStep ( integer $action, array $param = [] ) : mixed | Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step. |
Method | Description | |
---|---|---|
_is_safe_string ( string $str ) : boolean | Checks if a string is safe according to RFC 2849, or if it needs to be base64 encoded. |
protected _is_safe_string ( string $str ) : boolean | ||
$str | string | The string to check. |
return | boolean | True if the string is safe. |
public nextStep ( integer $action, array $param = [] ) : mixed | ||
$action | integer | The current step. One of the IMPORT_* constants. |
$param | array | An associative array containing needed parameters for the current step. |
return | mixed | Either the next step as an integer constant or imported data set after the final step. |
protected array $_mozillaAttr | ||
return | array |
protected array $_turbaAttr | ||
return | array |
protected array $_turbaMozillaMap | ||
return | array |