Public Member Functions | |
| init () | |
| getFileList () | |
| getFilesCount ($upload_target_srl) | |
| getDownloadUrl ($file_srl, $sid, $module_srl="") | |
| getFileConfig ($module_srl=null) | |
| getFile ($file_srl, $columnList=array()) | |
| getFiles ($upload_target_srl, $columnList=array(), $sortIndex= 'file_srl', $ckValid=false) | |
| getUploadConfig () | |
| getUploadStatus ($attached_size=0) | |
| getFileModuleConfig ($module_srl) | |
| getFileGrant ($file_info, $member_info) | |
Public Member Functions inherited from file | |
| moduleInstall () | |
| checkUpdate () | |
| moduleUpdate () | |
| recompileCache () | |
Public Member Functions inherited from ModuleObject | |
| setModule ($module) | |
| setModulePath ($path) | |
| setRedirectUrl ($url= './', $output=NULL) | |
| getRedirectUrl () | |
| setMessage ($message= 'success', $type=NULL) | |
| setMessageType ($type) | |
| getMessageType () | |
| setRefreshPage () | |
| setAct ($act) | |
| setModuleInfo ($module_info, $xml_info) | |
| stop ($msg_code) | |
| setTemplateFile ($filename) | |
| getTemplateFile () | |
| setTemplatePath ($path) | |
| getTemplatePath () | |
| setEditedLayoutFile ($filename) | |
| getEditedLayoutFile () | |
| setLayoutFile ($filename) | |
| getLayoutFile () | |
| setLayoutPath ($path) | |
| getLayoutPath ($layout_name="", $layout_type="P") | |
| proc () | |
Public Member Functions inherited from BaseObject | |
| __construct ($error=0, $message= 'success') | |
| setError ($error=0) | |
| getError () | |
| setHttpStatusCode ($code= '200') | |
| getHttpStatusCode () | |
| setMessage ($message= 'success', $type=NULL) | |
| getMessage () | |
| add ($key, $val) | |
| adds ($object) | |
| get ($key) | |
| gets () | |
| getVariables () | |
| getObjectVars () | |
| toBool () | |
| toBoolean () | |
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 | |
Model class of the file module
Definition at line 7 of file file.model.php.
| fileModel::getDownloadUrl | ( | $file_srl, | |
| $sid, | |||
$module_srl = "" |
|||
| ) |
Get a download path
| int | $file_srl | The sequence of file to get url |
| string | $sid |
Definition at line 140 of file file.model.php.
| fileModel::getFile | ( | $file_srl, | |
$columnList = array() |
|||
| ) |
Get file information
| int | $file_srl | The sequence of file to get information |
| array | $columnList | The list of columns to get from DB |
Definition at line 213 of file file.model.php.
| fileModel::getFileConfig | ( | $module_srl = null | ) |
Get file configurations
| int | $module_srl | If set this, returns specific module's configuration. Otherwise returns global configuration. |
Definition at line 151 of file file.model.php.
| fileModel::getFileGrant | ( | $file_info, | |
| $member_info | |||
| ) |
Returns a grant of file
| object | $file_info | The file information to get grant |
| object | $member_info | The member information to get grant |
Definition at line 347 of file file.model.php.
| fileModel::getFileList | ( | ) |
Return a file list attached in the document
It is used when a file list of the upload_target_srl is requested for creating/updating a document. Attempt to replace with sever-side session if upload_target_srl is not yet determined
Definition at line 25 of file file.model.php.
| fileModel::getFileModuleConfig | ( | $module_srl | ) |
Return file configuration of the module
| int | $module_srl | The sequence of module to get configuration |
Definition at line 335 of file file.model.php.
| fileModel::getFiles | ( | $upload_target_srl, | |
$columnList = array(), |
|||
$sortIndex = 'file_srl', |
|||
$ckValid = false |
|||
| ) |
Return all files which belong to a specific document
| int | $upload_target_srl | The sequence of target to get file list |
| array | $columnList | The list of columns to get from DB |
| string | $sortIndex | The column that used as sort index |
Definition at line 253 of file file.model.php.
| fileModel::getFilesCount | ( | $upload_target_srl | ) |
Return number of attachments which belongs to a specific document
| int | $upload_target_srl | The sequence to get a number of files |
Definition at line 125 of file file.model.php.
| fileModel::getUploadConfig | ( | ) |
Return configurations of the attachement (it automatically checks if an administrator is)
Definition at line 281 of file file.model.php.
| fileModel::getUploadStatus | ( | $attached_size = 0 | ) |
Return messages for file upload and it depends whether an admin is or not
| int | $attached_size |
Definition at line 312 of file file.model.php.
| fileModel::init | ( | ) |
1.8.5