-
Notifications
You must be signed in to change notification settings - Fork 0
Manifest
linzongshu edited this page Dec 19, 2013
·
3 revisions
-
upload($meta, $options = array())
-
$meta
-
uid
: user id -
title
: -
path
: logical or absolute path to file -
description
:
-
-
$options
-
dir
: folder of the file -
types
: allowed file format
-
-
-
update($id, $data)
-
$id
: file id -
$data
-
title
: file title -
description
: file description
-
-
-
activeFile($id)
-
$id
: file id
-
-
deactivateFile($id)
-
$id
: file id
-
-
getAttributes($id,$attribute)
-
$id
: file id -
$attribute
: name of attribute
-
-
getStatistics($id,$statistics)
-
$id
: file id -
$attribute
: name of statistics
-
-
getFileIds($condition, $limit, $offset, $order)
-
$condition
: condition-
category
: file category -
mini_type
: file mini_type, extension -
title
: file title -
description
: file description -
size
: file size -
uid
: uploader -
time_upload
: uploaded time
-
-
$limit
: list limitation -
$offset
: list offset -
$order
: order
-
-
getList($condition, $limit, $offset, $order)
-
$condition
: condition -
$limit
: list limitation -
$offset
: list offset -
$order
: order
-
-
getCount($condition)
-
$condition
: condition
-
-
getUrl($id)
-
$id
: file id
-
-
download($id)
-
$id
: file id
-
-
delete($id)
-
$id
: file id
-
-
getValidator($adapter = null)
-
$adapter
: adapter
-
-
getAdapter()
andsetAdapter()
- Raw title
- Title defined by uploader
- Name generate by module
- Description
- mimeType
- File size
- Image width
- Image height
- URL
- Application belonged
- Module
- Module category
- Uploader
- Uploader IP
- Uploaded time
- Update time
- Fetch count
-
Front-
UploadController- uploadAction
- Description: verify uploaded file
- Template: none
- removeAction
- Description: remove uploaded file
- Template: none
- syncAction (Client module only)
- Description: synchronize client media to server
- Template: none
- uploadAction
-
MediaController- saveAction
- Description: save a file
- Template: none
- addAction
- Description: add a file
- Template: media-edit.phtml
- editAction
- Description: edit a file
- Template: media-edit.phtml
- deleteAction
- Description: delete media
- Template: none
- saveAction
-
ListController- indexAction
- Description: list all active/deactivate media
- Template: list-index.phtml
- categoryAction
- Description: list media of a category
- Template: list-category.phtml
- moduleAction
- Description: list media from a module
- Template: list-module.phtml
- userAction
- Description: list media of a user
- Template: list-user.phtml
- indexAction
- DownloadController
- indexAction
- Description: download files
- Template: none
- indexAction
-
DetailController- imageAction
- Description: list image details
- Template: detail-image.phtml
- documentAction
- Description: list document details
- Template: detail-document.phtml
- indexAction
- Description: list details of other type file
- Template: detail-index.phtml
- videoAction
- Description: list video details
- Template: detail-video.phtml
- imageAction
-
- Admin
- ApplicationController
- editAction
- Description: edit application alias
- Template: application-edit.phtml
- deleteAction
- Description: delete an application
- Template: none
- listAction
- Description: list all application
- Template: application-list.phtml
- editAction
- MediaController
- editAction
- Description: edit a file
- Template: media-edit.phtml
- deleteAction
- Description: delete media
- Template: none
- activeAction
- Description: active/deactivate media
- Template: none
- editAction
- ListController
- indexAction
- Description: list all active/deactivate media
- Template: list-index.phtml
- typeAction
- Description: list media of a media type
- Template: list-category.phtml
- userAction
- Description: list media of a user
- Template: list-user.phtml
- applicationAction
- Description: list media of an application
- Template: list-application.phtml
- indexAction
-
AnalysisController- indexAction
- Description: get statistics data of media
- Template: analysis-index.phtml
- indexAction
- ApplicationController
- The same as APIs of media service
-
my_media_detail
- Storing media details
Name Type Length Default value Description id unsigned int 10 NULL Unique, Not null, auto_increment name varchar 255 ' ' Not null title varchar 255 ' ' Not null raw_name varchar 255 ' ' Not null mimetype varchar 64 ' ' Not null description varchar 255 ' ' Not null url varchar 255 ' ' Not null filesize unsigned int 10 0 Not null size_width unsigned int 10 0 Not null size_height unsigned int 10 0 Not null uid unsigned int 10 0 Not null ip varchar 64 0 Not null time_upload unsigned int 10 0 Not null time_update unsigned int 10 0 Not null meta text null module varchar 64 ' ' Not null application unsigned int 10 0 Not null category unsigned int 10 0 Not null delete tinyint 1 0 Not null active tinyint 1 1 Not null -
my_media_extended
- Storing media extended attributes
Name Type Length Default value Description id unsigned int 10 NULL Unique, Not null, auto_increment media unsigned int 10 0 Not null -
my_media_statistics
- Storing media statistics data
Name Type Length Default value Description id unsigned int 10 NULL Unique, Not null media unsigned int 10 0 Not null fetch_count unsigned int 10 0 Not null -
my_media_application
- Storing media application data
Name Type Length Default value Description id unsigned int 10 NULL Unique, Not null, auto_increment appkey varchar 255 ' ' Not null name varchar 255 ' ' Not null title varchar 255 ' ' Not null -
my_media_category
- Storing media category in a module
Name Type Length Default value Description id unsigned int 10 NULL Unique, Not null, auto_increment module varchar 64 ' ' Not null name varchar 64 ' ' Not null title varchar 255 ' ' Not null active tinyint 1 1 Not null