Back to index

d-push  2.0
Static Public Member Functions | Static Public Attributes
BackendCombinedConfig Class Reference

List of all members.

Static Public Member Functions

static GetBackendCombinedConfig ()
 Returns the configuration of the combined backend.

Static Public Attributes

static $BackendZarafa_config = array('MAPI_SERVER' => MAPI_SERVER)
static $BackendIMAP_config
static $BackendMaildir_config
static $BackendVCardDir_config = array('VCARDDIR_DIR' => VCARDDIR_DIR)

Detailed Description

Definition at line 45 of file config.php.


Member Function Documentation

Returns the configuration of the combined backend.

public

Returns:
array

Definition at line 98 of file config.php.

                                                      {
        //use a function for it because php does not allow
        //assigning variables to the class members (expecting T_STRING)
        return array(
            //the order in which the backends are loaded.
            //login only succeeds if all backend return true on login
            //sending mail: the mail is sent with first backend that is able to send the mail
            'backends' => array(
                'i' => array(
                    'name' => 'BackendIMAP',
                    'config' => self::$BackendIMAP_config,
                ),
                'z' => array(
                    'name' => 'BackendZarafa',
                    'config' => self::$BackendZarafa_config
                ),
                'm' => array(
                    'name' => 'BackendMaildir',
                    'config' => self::$BackendMaildir_config,
                ),
                'v' => array(
                    'name' => 'BackendVCardDir',
                    'config' => self::$BackendVCardDir_config,
                ),
            ),
            'delimiter' => '/',
            //force one type of folder to one backend
            //it must match one of the above defined backends
            'folderbackend' => array(
                SYNC_FOLDER_TYPE_INBOX => 'i',
                SYNC_FOLDER_TYPE_DRAFTS => 'i',
                SYNC_FOLDER_TYPE_WASTEBASKET => 'i',
                SYNC_FOLDER_TYPE_SENTMAIL => 'i',
                SYNC_FOLDER_TYPE_OUTBOX => 'i',
                SYNC_FOLDER_TYPE_TASK => 'z',
                SYNC_FOLDER_TYPE_APPOINTMENT => 'z',
                SYNC_FOLDER_TYPE_CONTACT => 'z',
                SYNC_FOLDER_TYPE_NOTE => 'z',
                SYNC_FOLDER_TYPE_JOURNAL => 'z',
                SYNC_FOLDER_TYPE_OTHER => 'i',
                SYNC_FOLDER_TYPE_USER_MAIL => 'i',
                SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'z',
                SYNC_FOLDER_TYPE_USER_CONTACT => 'z',
                SYNC_FOLDER_TYPE_USER_TASK => 'z',
                SYNC_FOLDER_TYPE_USER_JOURNAL => 'z',
                SYNC_FOLDER_TYPE_USER_NOTE => 'z',
                SYNC_FOLDER_TYPE_UNKNOWN => 'z',
            ),
            //creating a new folder in the root folder should create a folder in one backend
            'rootcreatefolderbackend' => 'i',
        );
    }

Here is the caller graph for this function:


Member Data Documentation

Initial value:
 array(
        
        'IMAP_SERVER' => IMAP_SERVER,
        
        'IMAP_PORT' => IMAP_PORT,
        
        'IMAP_OPTIONS' => IMAP_OPTIONS,
        
        
        
        
        'IMAP_DEFAULTFROM' => IMAP_DEFAULTFROM,
        
        'IMAP_SENTFOLDER' => IMAP_SENTFOLDER,
        
        'IMAP_INLINE_FORWARD' => IMAP_INLINE_FORWARD,
        
        'IMAP_USE_IMAPMAIL' => IMAP_USE_IMAPMAIL,
    )

Definition at line 55 of file config.php.

Initial value:
 array(
        'MAILDIR_BASE' => MAILDIR_BASE,
        'MAILDIR_SUBDIR' => MAILDIR_SUBDIR,
    )

Definition at line 78 of file config.php.

Definition at line 86 of file config.php.

Definition at line 50 of file config.php.


The documentation for this class was generated from the following file: