Метод |
Описание |
|
FileSize ( ) : string |
Calculates and returns a human-readable size of this archive file. If the file exists, it will determine
whether to display the output in bytes, kilobytes, megabytes, or gigabytes. |
|
attachFile ( string $sspakFilepath, DNDataTransfer $dataTransfer ) : boolean |
Attach an sspak file path to this archive and associate the transfer. |
|
canDelete ( Member | null $member = null ) : boolean |
Whether a {@link Member} can delete this archive from staging area. |
|
canDownload ( Member | null $member = null ) : true |
Whether a {@link Member} can download this archive to their PC. |
|
canMoveTo ( DNEnvironment $targetEnv, Member | null $member = null ) : boolean |
Check if this member can move archive into the environment. |
|
canRestore ( Member | null $member = null ) : true |
Whether a {@link Member} can restore this archive to an environment. |
|
canView ( Member | null $member = null ) |
Inferred from both restore and backup permissions. |
|
extractArchive ( string | null $workingDir = null ) : boolean |
Extract the current sspak contents into the given working directory. |
|
fixArchivePermissions ( string | null $workingDir ) : boolean |
Given a path that already exists and contains an extracted sspak, including
the assets, fix all of the file permissions so they're in a state ready to
be pushed to remote servers. |
|
generateFilename ( DNDataTransfer $dataTransfer ) : string |
Returns a unique filename, including project/environment/timestamp details. |
|
generateFilepath ( DNDataTransfer $dataTransfer ) : string |
Returns a path unique to a specific transfer, including project/environment details. |
|
generate_upload_token ( $chars = 8 ) : string |
Returns a unique token to correlate an offline item (posted DVD)
with a specific archive placeholder. |
|
getCMSFields ( ) |
|
|
getDefaultSearchContext ( ) |
|
|
getModeNice ( ) |
|
|
get_mode_map ( ) |
|
|
isPending ( ) : boolean |
Some archives don't have files attached to them yet,
because a file has been posted offline and is waiting to be uploaded
against this "archive placeholder". |
|
onAfterDelete ( ) |
|
|
onBeforeWrite ( ) |
|
|
setArchiveFromFiles ( string | null $workingDir ) : boolean |
Given extracted sspak contents, create an sspak from it
and overwrite the current ArchiveFile with it's contents. |
|
validTargetEnvironments ( ) : ArrayList |
Finds all environments within this project where the archive can be moved to. |
|
validateArchiveContents ( string | null $mode = null ) : ValidationResult |
Validate that an sspak contains the correct content. |
|