Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MP3_File_Edit_Fns Class Reference
Inheritance diagram for MP3_File_Edit_Fns:
File_Edit_Fns Asset_Edit_Fns MySource_Object

Public Member Functions

 MP3_File_Edit_Fns ()
 
 processFileUpload (&$asset, &$o, $prefix, $info=Array(), $redirect_in_limbo=TRUE, $asset_cloned=FALSE)
 
 paintExtractID3 (MP3_File $asset, Backend_Outputter $o, $prefix)
 
 processExtractID3 (MP3_File $asset, Backend_Outputter $o, $prefix)
 
 paintWriteID3 (MP3_File $asset, Backend_Outputter $o, $prefix)
 
 processWriteID3 (MP3_File $asset, Backend_Outputter $o, $prefix)
 
- Public Member Functions inherited from File_Edit_Fns
 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 ()
 

Additional Inherited Members

- Data Fields inherited from Asset_Edit_Fns
 $static_screens
 
- Protected Member Functions inherited from File_Edit_Fns
 havePreUploadedFiles (File $asset, $prefix)
 
 getPreuploadOptions (File $asset)
 

Detailed Description

Definition at line 32 of file mp3_file_edit_fns.inc.

Member Function Documentation

paintExtractID3 ( MP3_File  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the interface for the "extract ID3 metadata" field

Parameters
MP3_File$assetthe asset whose interface we are processing
Backend_Outputter$othe outputter class
string$prefixprefix for form elements
Returns
boolean

Definition at line 96 of file mp3_file_edit_fns.inc.

paintWriteID3 ( MP3_File  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the interface for the "write ID3 metadata" field

Parameters
MP3_File$assetthe asset whose interface we are processing
Backend_Outputter$othe outputter class
string$prefixprefix for form elements
Returns
boolean

Definition at line 153 of file mp3_file_edit_fns.inc.

processExtractID3 ( MP3_File  $asset,
Backend_Outputter  $o,
  $prefix 
)

Process the interface for the "extract ID3 metadata" field

If checked, set the extract_id3 flag attribute to TRUE, so that the metadata will be extracted. If not, then DON'T set to FALSE, because it may have been set in the file upload.

Parameters
MP3_File$assetthe asset whose interface we are processing
Backend_Outputter$othe outputter class
string$prefixprefix for form elements
Returns
boolean

Definition at line 130 of file mp3_file_edit_fns.inc.

processFileUpload ( $asset,
$o,
  $prefix,
  $info = Array(),
  $redirect_in_limbo = TRUE,
  $asset_cloned = FALSE 
)

Processes the interface for uploading a file

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

Parameters
File$assetthe file asset
Backend_Outputter$othe Backend Outputter object
string$prefixprefix for form elements
array$infoinfo about the uploaded file
boolean$redirect_in_limboredirect when the file name changes in limbo
boolean$asset_clonedto check if we creating a new asset or just cloning
See Also
File_Edit_Fns::processFileUpload()
Returns
boolean public

Definition at line 65 of file mp3_file_edit_fns.inc.

processWriteID3 ( MP3_File  $asset,
Backend_Outputter  $o,
  $prefix 
)

Process the interface for the "write ID3 metadata" field

If checked, set the write_id3 flag attribute to TRUE, so that the metadata will be extracted. If not, then DON'T set to FALSE, because it may have been set in the file upload.

Parameters
MP3_File$assetthe asset whose interface we are processing
Backend_Outputter$othe outputter class
string$prefixprefix for form elements
Returns
boolean

Definition at line 187 of file mp3_file_edit_fns.inc.


The documentation for this class was generated from the following file: