XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
fileAdminModel Class Reference
Inheritance diagram for fileAdminModel:
file ModuleObject BaseObject

Public Member Functions

 init ()
 
 getFileList ($obj, $columnList=array())
 
 getFilesCountByGroupValid ($obj= '')
 
 getFilesCountByDate ($date= '')
 
 _makeSearchParam (&$obj, &$args)
 
- 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
 

Detailed Description

Admin model class of the file module

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com)

Definition at line 7 of file file.admin.model.php.

Member Function Documentation

fileAdminModel::_makeSearchParam ( $obj,
$args 
)

Make search parameters from object(private)

Parameters
object$objOriginal searach options
object$argsResult searach options
Returns
void

Definition at line 150 of file file.admin.model.php.

fileAdminModel::getFileList (   $obj,
  $columnList = array() 
)

Get all the attachments in order by time descending (for administrators)

Search options:

  • s_module_srl: int[] or int, search module_srl
  • exclude_module_srl: int[] or int, exclude module_srl
  • isvalid: Y or N
  • direct_download: Y or N
  • s_filename: string, like operation
  • s_filesize_more: int, more operation, byte unit
  • s_filesize_mega_more: int, more operation, mega unit
  • s_filesize_less: int, less operation, byte unit
  • s_filesize_mega_less: int, less operation, mega unit
  • s_download_count: int, more operation
  • s_regdate: string(YYYYMMDDHHMMSS), like prefix operation(STRING%)
  • s_ipaddress: string, like prefix operation
  • s_user_id: string
  • s_user_name: string
  • s_nick_name: string
  • sort_index: string. default: files.file_srl
  • page : int
  • list_count: int. default: 20
  • page_count: int. default: 10
Result data:

  • file_srl
  • upload_target_srl
  • upload_target_type
  • sid
  • module_srl
  • member_srl
  • download_count
  • direct_download
  • source_filename
  • uploaded_filename
  • file_size
  • comment
  • isvaild
  • regdate
  • ipaddress
Parameters
object$objSearch options
array$columnListColumn list to get from DB
Returns
BaseObject BaseObject contains query result

Definition at line 65 of file file.admin.model.php.

fileAdminModel::getFilesCountByDate (   $date = '')

Return number of attachments which belongs to a specific date

Parameters
string$dateDate string
Returns
int

Definition at line 133 of file file.admin.model.php.

fileAdminModel::getFilesCountByGroupValid (   $obj = '')

Return number of attachments which belongs to a specific document

Result data:
+---------+-------+
| isvalid | count |
+---------+-------+
| Y       | 00    |
+---------+-------+
| N       | 00    |
+---------+-------+
Parameters
object$objSearch options (not used...)
Returns
array

Definition at line 119 of file file.admin.model.php.

fileAdminModel::init ( )

Initialization

Returns
void

Definition at line 13 of file file.admin.model.php.


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