Back to index

d-push  2.0
Public Member Functions | Private Attributes
ImportHierarchyChangesCombinedWrap Class Reference

The ImportHierarchyChangesCombinedWrap class wraps the importer given in ExportChangesCombined->Config. More...

List of all members.

Public Member Functions

 ImportHierarchyChangesCombinedWrap ($backendid, &$backend, &$ihc)
 Constructor of the ImportChangesCombined class.
 ImportFolderChange ($folder)
 Imports a change on a folder.
 ImportFolderDeletion ($id)
 Imports a folder deletion.

Private Attributes

 $ihc
 $backend
 $backendid

Detailed Description

The ImportHierarchyChangesCombinedWrap class wraps the importer given in ExportChangesCombined->Config.

It prepends the backendid to all folderids and checks foldertypes.

Definition at line 289 of file importer.php.


Member Function Documentation

Imports a change on a folder.

Parameters:
object$folderSyncFolder

public

Returns:
boolean/string status/id of the folder

Definition at line 318 of file importer.php.

                                                {
        ZLog::Write(LOGLEVEL_DEBUG, sprintf("ImportHierarchyChangesCombinedWrap->ImportFolderChange('%s')", $folder->serverid));
        $folder->serverid = $this->backendid.$this->backend->config['delimiter'].$folder->serverid;
        if($folder->parentid != '0' || !empty($this->backend->config['backends'][$this->backendid]['subfolder'])){
            $folder->parentid = $this->backendid.$this->backend->config['delimiter'].$folder->parentid;
        }
        if(isset($this->backend->config['folderbackend'][$folder->type]) && $this->backend->config['folderbackend'][$folder->type] != $this->backendid){
            ZLog::Write(LOGLEVEL_DEBUG, sprintf("not ussing folder: '%s' ('%s')", $folder->displayname, $folder->serverid));
            return true;
        }
        ZLog::Write(LOGLEVEL_DEBUG, "ImportHierarchyChangesCombinedWrap->ImportFolderChange() success");
        return $this->ihc->ImportFolderChange($folder);
    }

Here is the call graph for this function:

Imports a folder deletion.

Parameters:
string$idpublic
Returns:
boolean/int success/SYNC_FOLDERHIERARCHY_STATUS

Definition at line 341 of file importer.php.

                                              {
        ZLog::Write(LOGLEVEL_DEBUG, sprintf("ImportHierarchyChangesCombinedWrap->ImportFolderDeletion('%s')", $id));
        return $this->ihc->ImportFolderDeletion($this->backendid.$this->backend->config['delimiter'].$id);
    }

Here is the call graph for this function:

Constructor of the ImportChangesCombined class.

Parameters:
string$backendid
object$backend
object$ihcpublic

Definition at line 303 of file importer.php.

                                                                                     {
        ZLog::Write(LOGLEVEL_DEBUG, "ImportHierarchyChangesCombinedWrap->ImportHierarchyChangesCombinedWrap('$backendid',...)");
        $this->backendid = $backendid;
        $this->backend =& $backend;
        $this->ihc = &$ihc;
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 291 of file importer.php.

Definition at line 292 of file importer.php.

Definition at line 290 of file importer.php.


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