‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\DuplicationBehavior Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\DuplicationBehavior:
TYPO3\CMS\Core\Type\Enumeration TYPO3\CMS\Core\Type\TypeInterface

Public Attributes

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

Additional Inherited Members

- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
 __construct ($value=null)
 
bool equals ($value)
 
string __toString ()
 
- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static array getConstants ($include_default=false)
 
static static cast ($value)
 
static string getName ($value)
 
static string getHumanReadableName ($value)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
 setValue ($value)
 
bool isValid ($value)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static loadValues ()
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Type\Enumeration
mixed $value
 
- ‪Static Protected Attributes inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static array $enumConstants
 

Detailed Description

Enumeration object for DuplicationBehavior

Deprecated:
‪will be removed in TYPO3 v14.0

Definition at line 24 of file DuplicationBehavior.php.

Member Data Documentation

◆ __default

const TYPO3\CMS\Core\Resource\DuplicationBehavior::__default = self::CANCEL

Definition at line 26 of file DuplicationBehavior.php.

◆ CANCEL

const TYPO3\CMS\Core\Resource\DuplicationBehavior::CANCEL = 'cancel'

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

Definition at line 47 of file DuplicationBehavior.php.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\addFile(), TYPO3\CMS\Core\Resource\ResourceStorage\copyFolder(), TYPO3\CMS\Core\Resource\ResourceStorage\moveFile(), and TYPO3\CMS\Core\Resource\ResourceStorage\renameFile().

◆ RENAME

const TYPO3\CMS\Core\Resource\DuplicationBehavior::RENAME = 'rename'

◆ REPLACE

const TYPO3\CMS\Core\Resource\DuplicationBehavior::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 40 of file DuplicationBehavior.php.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\addFile(), TYPO3\CMS\Core\Resource\ResourceStorage\addUploadedFile(), and TYPO3\CMS\Core\Resource\ResourceStorage\renameFile().