Свойство | Тип | Описание | |
---|---|---|---|
$arrShouldBeSynchronized | array | Synchronize the database |
Метод | Описание | |
---|---|---|
addResource ( string $strResource, boolean $blnUpdateFolders = true ) : |
Adds a file or folder with its parent folders | |
copyResource ( string $strSource, string $strDestination ) : |
Copies a file or folder to a new location | |
deleteResource ( string $strResource ) : null | Removes a file or folder | |
moveResource ( string $strSource, string $strDestination ) : |
Moves a file or folder to a new location | |
shouldBeSynchronized ( string $strPath ) : boolean | Check if the current resource should be synchronized with the database | |
syncFiles ( ) : string | Synchronize the file system with the database | |
updateFolderHashes ( mixed $varResource ) | Update the hashes of all parent folders of a resource |
Метод | Описание | |
---|---|---|
isFileSyncExclude ( string $strPath ) : boolean | Check if a file or folder is excluded from synchronization |
public static addResource ( string $strResource, boolean $blnUpdateFolders = true ) : |
||
$strResource | string | The path to the file or folder |
$blnUpdateFolders | boolean | If true, the parent folders will be updated |
Результат | The files model |
public static copyResource ( string $strSource, string $strDestination ) : |
||
$strSource | string | The source path |
$strDestination | string | The target path |
Результат | The files model |
public static deleteResource ( string $strResource ) : null | ||
$strResource | string | The path to the file or folder |
Результат | null | Explicitly return null |
protected static isFileSyncExclude ( string $strPath ) : boolean | ||
$strPath | string | The relative path |
Результат | boolean | True if the file or folder is excluded from synchronization |
public static moveResource ( string $strSource, string $strDestination ) : |
||
$strSource | string | The source path |
$strDestination | string | The target path |
Результат | The files model |
public static shouldBeSynchronized ( string $strPath ) : boolean | ||
$strPath | string | The relative path |
Результат | boolean | True if the current resource needs to be synchronized with the database |
public static updateFolderHashes ( mixed $varResource ) | ||
$varResource | mixed | A path or an array of paths to update |
protected static array $arrShouldBeSynchronized | ||
Результат | array |