TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DuplicationBehavior Class Reference
Inheritance diagram for DuplicationBehavior:
Enumeration TypeInterface

Public Attributes

const __default = self::CANCEL
 
const RENAME = 'rename'
 
const REPLACE = 'replace'
 
const CANCEL = 'cancel'
 

Additional Inherited Members

- Public Member Functions inherited from Enumeration
 __construct ($value=null)
 
 equals ($value)
 
 __toString ()
 
- Static Public Member Functions inherited from Enumeration
static getConstants ($include_default=false)
 
static cast ($value)
 
static getName ($value)
 
static getHumanReadableName ($value)
 
- Protected Member Functions inherited from Enumeration
 setValue ($value)
 
 isValid ($value)
 
- Static Protected Member Functions inherited from Enumeration
static loadValues ()
 
- Protected Attributes inherited from Enumeration
 $value
 
- Static Protected Attributes inherited from Enumeration
static $enumConstants
 

Detailed Description

Enumeration object for DuplicationBehavior

Definition at line 20 of file DuplicationBehavior.php.

Member Data Documentation

const __default = self::CANCEL

Definition at line 22 of file DuplicationBehavior.php.

Referenced by ImportExportController\checkUpload().

const CANCEL = 'cancel'

If a file is uploaded and another file with the same name already exists, the process is aborted.

Definition at line 43 of file DuplicationBehavior.php.

Referenced by ResourceStorage\addFile(), ExtendedFileUtility\func_move(), and ResourceStorage\moveFile().

const RENAME = 'rename'

If a file is uploaded and another file with the same name already exists, the new file is renamed.

Definition at line 29 of file DuplicationBehavior.php.

Referenced by ResourceStorage\addFile(), AbstractOnlineMediaHelper\createNewFile(), ExtendedFileUtility\func_move(), ResourceStorage\moveFile(), and ExtendedFileUtility\replaceFile().

const REPLACE = 'replace'

If a file is uploaded and another file with the same name already exists, the old file gets overwritten by the new file.

Definition at line 36 of file DuplicationBehavior.php.

Referenced by ResourceStorage\addUploadedFile(), ImportExportController\checkUpload(), and ExtendedFileUtility\replaceFile().