BlankService
Table of Contents
Methods
-
__construct()
: mixed
-
changeBlankTitleByDocument()
: Result
-
createFromFile()
: AddResult
-
createFromFileIds()
: AddResult
-
deleteWithResources()
: Result
-
rollbackById()
: Result
__construct()
public
__construct([BlankFileService|null $blankFileService = null ][, BlankRepository|null $blankRepository = null ][, FileRepository|null $fileRepository = null ]) : mixed
Parameters
-
$blankFileService
: BlankFileService|null
= null
-
-
$blankRepository
: BlankRepository|null
= null
-
-
$fileRepository
: FileRepository|null
= null
-
changeBlankTitleByDocument()
public
changeBlankTitleByDocument(Document $document, string $title) : Result
Parameters
-
$document
: Document
-
-
$title
: string
-
createFromFile()
public
createFromFile(FileCollection $fileCollection[, string $scenario = BlankScenario::B2B ][, bool $forTemplate = false ]) : AddResult
Parameters
-
$fileCollection
: FileCollection
-
-
$scenario
: string
= BlankScenario::B2B
-
-
$forTemplate
: bool
= false
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
createFromFileIds()
public
createFromFileIds(array<string|int, string|int> $files[, string $scenario = BlankScenario::B2B ][, bool $forTemplate = false ]) : AddResult
Parameters
-
$files
: array<string|int, string|int>
-
-
$scenario
: string
= BlankScenario::B2B
-
-
$forTemplate
: bool
= false
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
deleteWithResources()
public
deleteWithResources(Blank $blankItem) : Result
Parameters
-
$blankItem
: Blank
-
rollbackById()
public
rollbackById(int $blankId) : Result
Parameters
-
$blankId
: int
-