Attachment editing interface

package midgard.admin.asgard

 Methods

_handler_create (string $handler_id, array $args, array $data)

Handler method for creating new attachments

Parameters

$handler_id

stringName of the used handler

$args

arrayArray containing the variable arguments passed to the handler

$data

array&$data Data passed to the show method

_handler_delete (string $handler_id, array $args, array $data)

Handler method for confirming file deleting for the requested file

Parameters

$handler_id

stringName of the used handler

$args

arrayArray containing the variable arguments passed to the handler

$data

array&$data Data passed to the show method

_handler_edit (string $handler_id, array $args, array $data)

Handler method for listing style elements for the currently used component topic

Parameters

$handler_id

stringName of the used handler

$args

arrayArray containing the variable arguments passed to the handler

$data

array&$data Data passed to the show method

_on_initialize ()

_show_create (string $handler_id, array $data)

Show the editing view for the requested style

Parameters

$handler_id

stringName of the used handler

$data

array&$data Data passed to the show method

_show_delete (string $handler_id, array $data)

Show the delete request

Parameters

$handler_id

stringName of the used handler

$data

array&$data Data passed to the show method

_show_edit (string $handler_id, array $data)

Show the editing view for the requested style

Parameters

$handler_id

stringName of the used handler

$data

array&$data Data passed to the show method

_add_jscripts ()

Helper function that adds the necessary files for attachment operations, if attachments exist

_get_file ($filename)

Parameters

$filename

_list_files ()

_process_file_upload ($uploaded_file)

Parameters

$uploaded_file

_process_form ()

 Properties

 

\midcom_db_attachment $_file

Current file being edited
 

array $_files

Files in the current object
 

\MidCOM $_object

Current loaded object