|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| File_Edit_Fns () | |
| paintFilename (&$asset, &$o, $prefix) | |
| processFilename (&$asset, &$o, $prefix) | |
| paintFileUpload (File $asset, Backend_Outputter $o, $prefix) | |
| processFileUploadPreUpload (File $asset, $o, $prefix, Array $info=Array(), $redirect_in_limbo=TRUE) | |
| processFileUpload (File $asset, &$o, $prefix, Array $info=Array(), $redirect_in_limbo=TRUE, $asset_cloned=FALSE) | |
| processFileChooser (File $asset, $o, $prefix, $create=FALSE) | |
| removeOldFile (File $asset, &$existing, File_Versioning $fv) | |
| getNewFile (File $asset, $name, Array $info) | |
| getChosenFileInfo ($prefix) | |
| printExistingFileInfo (File $asset) | |
Public Member Functions inherited from Asset_Edit_Fns | |
| Asset_Edit_Fns () | |
| paintPaths (&$asset, &$o, $prefix) | |
| paintEditRemapURLs (&$asset, &$o, $prefix) | |
| processPaths (&$asset, &$o, $prefix) | |
| processEditRemapURLs (&$asset, &$o, $prefix) | |
| paintURLs (&$asset, &$o, $prefix) | |
| paintAddRemapURLs (&$asset, &$o, $prefix) | |
| processAddRemapURLs (&$asset, &$o, $prefix) | |
| isWorkflowComplete (&$asset) | |
| paintNoticeLinkedAsset (&$asset, $link_value, $type_codes=Array(), $field_name='', $multiple=FALSE) | |
| processNoticeLinkedAsset (&$asset, $link_value, $field_name='', $multiple=FALSE) | |
| isSearchInstalled (&$asset, $prefix) | |
| isBeingCreated (&$asset) | |
| isNotBeingCreated (&$asset) | |
| paintAutomaticRemapSetting (&$asset, &$o, $prefix) | |
| paintCreateLink (&$asset, &$o, $prefix) | |
Public Member Functions inherited from MySource_Object | |
| MySource_Object () | |
| __sleep () | |
| __wakeup () | |
Protected Member Functions | |
| havePreUploadedFiles (File $asset, $prefix) | |
| getPreuploadOptions (File $asset) | |
Additional Inherited Members | |
Data Fields inherited from Asset_Edit_Fns | |
| $static_screens | |
Definition at line 31 of file file_edit_fns.inc.
| File_Edit_Fns | ( | ) |
Constructor
Definition at line 39 of file file_edit_fns.inc.
| getChosenFileInfo | ( | $prefix | ) |
Get the info on the pre-uploaded file chosen by the user
| string | $prefix | prefix for form elements |
Definition at line 554 of file file_edit_fns.inc.
| getNewFile | ( | File | $asset, |
| $name, | |||
| Array | $info | ||
| ) |
Get the new file of a file asset
| File | &$asset | the file asset we are in |
| string | $name | the new name for the file asset |
| array | &$info | the info array for the new file |
Definition at line 516 of file file_edit_fns.inc.
|
protected |
Get a list of pre-uploaded files available for use
Subclasses can override this to restrict file types Return value format: Array(value => value to be used with combo_box)
| Asset | $asset | The asset that might use the files |
Definition at line 461 of file file_edit_fns.inc.
|
protected |
Find out if there are any pre-uploaded files we can use, returns TRUE if there is
| Asset | $asset | The asset that might use the files |
| string | $prefix | the prefix for this asset |
Definition at line 439 of file file_edit_fns.inc.
| paintFilename | ( | & | $asset, |
| & | $o, | ||
| $prefix | |||
| ) |
Prints the interface for editing filename
| object | &$asset | the file asset |
| object | &$o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
Definition at line 58 of file file_edit_fns.inc.
| paintFileUpload | ( | File | $asset, |
| Backend_Outputter | $o, | ||
| $prefix | |||
| ) |
Prints the interface for uploading a file
| File | $asset | the file asset |
| Backend_Outputter | $o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
Definition at line 122 of file file_edit_fns.inc.
| printExistingFileInfo | ( | File | $asset | ) |
Prints info about the current uploaded file
| File | $asset | the file asset |
Definition at line 576 of file file_edit_fns.inc.
| processFileChooser | ( | File | $asset, |
| $o, | |||
| $prefix, | |||
$create = FALSE |
|||
| ) |
Process the interface where you can choose a pre-uploaded file
Returns TRUE if a file was processed
| File | $asset | the file asset |
| Backend_Outputter | $o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
| boolean | $create | TRUE if this is being called from createAdditional and should run even though the asset is not yet created |
Definition at line 411 of file file_edit_fns.inc.
| processFilename | ( | & | $asset, |
| & | $o, | ||
| $prefix | |||
| ) |
Processes the interface for editing filename
| object | &$asset | the file asset |
| object | &$o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
Definition at line 81 of file file_edit_fns.inc.
| processFileUpload | ( | File | $asset, |
| & | $o, | ||
| $prefix, | |||
| Array | $info = Array(), |
||
$redirect_in_limbo = TRUE, |
|||
$asset_cloned = FALSE |
|||
| ) |
Processes the interface for uploading a file
NOTE: this function is called from several places other than by asset_edit_interface, for example file::_createAdditional and trigger_action_replace_file::execute
If you want to process an upload of a file that was not uploaded through PHP (possible because of FTP or it was in a tar archive), ensure you pass the information about the file in the $info array. The fields required are: name => the filename without path (eg file.txt) tmp_name => the location of the file on the file system non_uploaded_file => must equal TRUE
| File | $asset | the file asset |
| Backend_Outputter | $o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
| array | $info | info about the uploaded file |
| boolean | $redirect_in_limbo | redirect when the file name changes in limbo |
| boolean | $asset_cloned | to check if we creating a new asset or just cloning |
Definition at line 259 of file file_edit_fns.inc.
| processFileUploadPreUpload | ( | File | $asset, |
| $o, | |||
| $prefix, | |||
| Array | $info = Array(), |
||
$redirect_in_limbo = TRUE |
|||
| ) |
Processes the interface for uploading a file
| File | $asset | the file asset |
| Backend_Outputter | $o | the Backend Outputter object |
| string | $prefix | prefix for form elements |
| array | $info | info about the uploaded file |
| boolean | $redirect_in_limbo | redirect when the file name changes in limbo |
Definition at line 221 of file file_edit_fns.inc.
| removeOldFile | ( | File | $asset, |
| & | $existing, | ||
| File_Versioning | $fv | ||
| ) |
Remove the old file of a file asset
| File | $asset | the file asset we are in |
| array | &$existing | info about existing |
| File_Versioning | $fv | the file versioning object |
Definition at line 483 of file file_edit_fns.inc.