package midcom.helper.filesync

 Methods

__construct (string $root_dir, boolean $delete_missing)

Initializes the class.

Parameters

$root_dir

stringThe export root directory

$delete_missing

booleanwhether to delete missing items from database

create (string $type)

This is a static factory method which lets you dynamically create exporter instances.
Static

It takes care of loading the required class files. The returned instances will be created but not initialized.

Parameters

$type

stringtype

Returns

\midcom_helper_filesync_exporterA reference to the newly created exporter instance.

export ()

delete_missing_files ($filenames, $path)

Parameters

$filenames

$path

delete_missing_folders ($foldernames, $path)

Parameters

$foldernames

$path

 Properties

 

boolean $delete_missing

Whether to delete elements from file system that do not exist in database
 

mixed $root_dir