class Importer (View source)

deprecated use the new Concrete\Core\File\Import\FileImporter class

Constants

deprecated E_PHP_FILE_ERROR_DEFAULT

deprecated E_PHP_FILE_EXCEEDS_UPLOAD_MAX_FILESIZE

deprecated E_PHP_FILE_EXCEEDS_HTML_MAX_FILE_SIZE

deprecated E_PHP_FILE_PARTIAL_UPLOAD

deprecated E_PHP_NO_FILE

deprecated E_PHP_NO_TMP_DIR

deprecated E_PHP_CANT_WRITE

deprecated E_PHP_EXTENSION

deprecated E_FILE_INVALID_EXTENSION

deprecated E_FILE_INVALID

deprecated E_FILE_UNABLE_TO_STORE

deprecated E_FILE_INVALID_STORAGE_LOCATION

deprecated E_FILE_UNABLE_TO_STORE_PREFIX_PROVIDED

deprecated E_FILE_EXCEEDS_POST_MAX_FILE_SIZE

Properties

protected bool deprecated $rescanThumbnailsOnImport
protected deprecated $importProcessors
protected Application $app
private FileImporter $fileImporter
private ProcessorManager $deprecatedProcessorUsed

Methods

__construct()

No description

static string
getErrorMessage(int $code) deprecated

No description

addImportProcessor(ProcessorInterface $processor) deprecated

No description

string
generatePrefix() deprecated

No description

Version|int
import(string $pointer, string|bool $filename = false, File|FileFolder|null|false $fr = false, string|null $prefix = null) deprecated

No description

Version|int
importIncomingFile(string $filename, File|FileFolder|null|false $fr = false) deprecated

No description

Version|int
importUploadedFile(UploadedFile $uploadedFile = null, File|FileFolder|null|false $fr = false) deprecated

No description

setRescanThumbnailsOnImport(bool $value) deprecated

No description

buildOptions(File|FileFolder|null|false $fr, string|null $customPrefix = '')

No description

useDeprecatedProcessors()

No description

Details

__construct()

No description

static string getErrorMessage(int $code) deprecated

deprecated

No description

Parameters

int $code

Return Value

string

See also

ImportException::describeErrorCode

addImportProcessor(ProcessorInterface $processor) deprecated

deprecated

No description

Parameters

ProcessorInterface $processor

See also

ProcessorManager

string generatePrefix() deprecated

deprecated

No description

Return Value

string

See also

FileImporter::generatePrefix

Version|int import(string $pointer, string|bool $filename = false, File|FileFolder|null|false $fr = false, string|null $prefix = null) deprecated

deprecated

No description

Parameters

string $pointer
string|bool $filename
File|FileFolder|null|false $fr
string|null $prefix

Return Value

Version|int

See also

FileImporter::importLocalFile

Version|int importIncomingFile(string $filename, File|FileFolder|null|false $fr = false) deprecated

deprecated

No description

Parameters

string $filename
File|FileFolder|null|false $fr

Return Value

Version|int

See also

FileImporter::importFromIncoming

Version|int importUploadedFile(UploadedFile $uploadedFile = null, File|FileFolder|null|false $fr = false) deprecated

deprecated

No description

Parameters

UploadedFile $uploadedFile
File|FileFolder|null|false $fr

Return Value

Version|int

See also

FileImporter::importUploadedFile

setRescanThumbnailsOnImport(bool $value) deprecated

deprecated

No description

private ImportOptions buildOptions(File|FileFolder|null|false $fr, string|null $customPrefix = '')

No description

Parameters

File|FileFolder|null|false $fr
string|null $customPrefix

Return Value

ImportOptions

private useDeprecatedProcessors()

No description