Additional Inherited Members | |
Public Attributes inherited from ModuleObject | |
$mid = NULL | |
string to represent run-time instance of Module (XE Module) More... | |
$module = NULL | |
Class name of Xe Module that is identified by mid. More... | |
$module_srl = NULL | |
integer value to represent a run-time instance of Module (XE Module) More... | |
$module_info = NULL | |
an object containing the module information More... | |
$origin_module_info = NULL | |
$xml_info = NULL | |
an object containing the module description extracted from XML file More... | |
$module_path = NULL | |
a path to directory where module source code resides More... | |
$act = NULL | |
a string value to contain the action name More... | |
$template_path = NULL | |
a path of directory where template files reside More... | |
$template_file = NULL | |
name of template file More... | |
$layout_path = '' | |
a path of directory where layout files reside More... | |
$layout_file = '' | |
name of layout file More... | |
$edited_layout_file = '' | |
name of temporary layout files that is modified in an admin mode More... | |
$stop_proc = FALSE | |
a flag to indicating whether to stop the execution of code. More... | |
$module_config = NULL | |
$ajaxRequestMethod = array('XMLRPC', 'JSON') | |
$gzhandler_enable = TRUE | |
Public Attributes inherited from BaseObject | |
$error = 0 | |
$message = 'success' | |
$variables = array() | |
$httpStatusCode = NULL | |
Controller class of the file module
Definition at line 7 of file file.controller.php.
fileController::deleteFile | ( | $file_srl | ) |
Delete the attachment
This method call trigger 'file.deleteFile'. Before, after trigger object contains:
int | $file_srl | Sequence of file to delete |
Definition at line 834 of file file.controller.php.
fileController::deleteFiles | ( | $upload_target_srl | ) |
Delete all attachments of a particular document
int | $upload_target_srl | Upload target srl to delete files |
Definition at line 899 of file file.controller.php.
fileController::init | ( | ) |
fileController::insertFile | ( | $file_info, | |
$module_srl, | |||
$upload_target_srl, | |||
$download_count = 0 , |
|||
$manual_insert = false |
|||
) |
Add an attachement
This method call trigger 'file.insertFile'.
Before trigger object contains:
After trigger object contains:
object | $file_info | PHP file information array |
int | $module_srl | Sequence of module to upload file |
int | $upload_target_srl | Sequence of target to upload file |
int | $download_count | Initial download count |
bool | $manual_insert | If set true, pass validation check |
Definition at line 656 of file file.controller.php.
fileController::moveFile | ( | $source_srl, | |
$target_module_srl, | |||
$target_srl | |||
) |
Move an attachement to the other document
int | $source_srl | Sequence of target to move |
int | $target_module_srl | New squence of module |
int | $target_srl | New sequence of target |
Definition at line 943 of file file.controller.php.
fileController::printUploadedFileList | ( | $editor_sequence, | |
$upload_target_srl | |||
) |
Find the attachment where a key is upload_target_srl and then return java script code
int | $editor_sequence | |
int | $upload_target_srl |
Definition at line 1047 of file file.controller.php.
fileController::procFileDelete | ( | ) |
Delete an attachment from the editor
Definition at line 394 of file file.controller.php.
fileController::procFileDownload | ( | ) |
Download Attachment
Receive a request directly file_srl: File sequence sid : value in DB for comparison, No download if not matched
This method call trigger 'file.downloadFile'. before, after. Trigger object contains:
return void
Definition at line 179 of file file.controller.php.
fileController::procFileGetList | ( | ) |
fileController::procFileIframeUpload | ( | ) |
fileController::procFileImageResize | ( | ) |
fileController::procFileOutput | ( | ) |
Definition at line 304 of file file.controller.php.
fileController::procFileSetCoverImage | ( | ) |
Definition at line 986 of file file.controller.php.
fileController::procFileUpload | ( | ) |
Upload attachments in the editor
Determine the upload target srl from editor_sequence and uploadTargetSrl variables. Create and return the UploadTargetSrl if not exists so that UI can use the value for sync.
Definition at line 26 of file file.controller.php.
fileController::setFilesValid | ( | $upload_target_srl | ) |
Set the attachements of the upload_target_srl to be valid By changing its state to valid when a document is inserted, it prevents from being considered as a unnecessary file
int | $upload_target_srl |
Definition at line 618 of file file.controller.php.
fileController::setUploadInfo | ( | $editor_sequence, | |
$upload_target_srl = 0 |
|||
) |
Upload enabled
int | $editor_sequence | |
int | $upload_target_srl |
Definition at line 601 of file file.controller.php.
fileController::triggerAttachFiles | ( | & | $obj | ) |
A trigger to link the attachment with the upload_target_srl (document_srl)
object | $obj | Trigger object |
Definition at line 501 of file file.controller.php.
fileController::triggerCheckAttached | ( | & | $obj | ) |
A trigger to return numbers of attachments in the upload_target_srl (document_srl)
object | $obj | Trigger object |
Definition at line 484 of file file.controller.php.
fileController::triggerCommentAttachFiles | ( | & | $obj | ) |
A trigger to link the attachment with the upload_target_srl (comment_srl)
object | $obj | Trigger object |
Definition at line 550 of file file.controller.php.
fileController::triggerCommentCheckAttached | ( | & | $obj | ) |
A trigger to return numbers of attachments in the upload_target_srl (comment_srl)
object | $obj | Trigger object |
Definition at line 533 of file file.controller.php.
fileController::triggerCommentDeleteAttached | ( | & | $obj | ) |
A trigger to delete the attachment in the upload_target_srl (comment_srl)
object | $obj | Trigger object |
Definition at line 568 of file file.controller.php.
fileController::triggerCopyModule | ( | & | $obj | ) |
Definition at line 1052 of file file.controller.php.
fileController::triggerDeleteAttached | ( | & | $obj | ) |
A trigger to delete the attachment in the upload_target_srl (document_srl)
object | $obj | Trigger object |
Definition at line 518 of file file.controller.php.
fileController::triggerDeleteModuleFiles | ( | & | $obj | ) |
A trigger to delete all the attachements when deleting the module
object | $obj | Trigger object |
Definition at line 585 of file file.controller.php.