TYPO3  7.6
Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
DuplicationBehavior Class Reference
Inheritance diagram for DuplicationBehavior:
Enumeration TypeInterface

Public Member Functions

 __construct ($value=null)
 
- Public Member Functions inherited from Enumeration
 __construct ($value=null)
 
 equals ($value)
 
 __toString ()
 

Public Attributes

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

Static Protected Attributes

static $legacyValueMap
 
- Static Protected Attributes inherited from Enumeration
static $enumConstants
 

Additional Inherited Members

- Static Public Member Functions inherited from Enumeration
static getConstants ($include_default=false)
 
static cast ($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
 

Detailed Description

Enumeration object for DuplicationBehavior

Definition at line 21 of file DuplicationBehavior.php.

Constructor & Destructor Documentation

__construct (   $value = null)
Parameters
mixed$value

Definition at line 62 of file DuplicationBehavior.php.

References Enumeration\$value, and GeneralUtility\deprecationLog().

Member Data Documentation

$legacyValueMap
staticprotected
Initial value:
= array(
'1' => self::REPLACE,
'overrideExistingFile' => self::REPLACE,
'renameNewFile' => self::RENAME,
'changeName' => self::RENAME
)

Definition at line 52 of file DuplicationBehavior.php.

const __default = self::CANCEL

Definition at line 23 of file DuplicationBehavior.php.

const CANCEL = 'cancel'

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

Definition at line 44 of file DuplicationBehavior.php.

Referenced by ResourceStorage\addFile(), ImportExportController\checkUpload(), 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 30 of file DuplicationBehavior.php.

Referenced by ResourceStorage\addFile(), ExtendedFileUtility\func_move(), ResourceStorage\moveFile(), ExtendedFileUtility\replaceFile(), ImportExport\setRelations(), and ImportExport\writeSysFileResourceForLegacyImport().

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 37 of file DuplicationBehavior.php.

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