Service.media - pi-engine/pi GitHub Wiki
Pi Media APIs
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
getAttributes($id,$attribute)
$id: file id
$attribute: name of attribute
getStatistics($id,$statistics)
$id: file id
$attribute: name of statistics
getUrl($id)
edit($title,$description,$path)
$title: file title
$description: file description
$path: logical or absolute path to file
download($id)
delete($id)
search($title,$description,$time_upload)
$title: file title
$description: file description
$time_upload: time for file to upload
addImage($meta, $options = array())
addFile($meta, $options = array())
getImage($id)
resize($width,$height)
$width: target width
$height: target height
crop($x, $y, $width, $height)
$x: x coordinates of starting point
$y: y coordinates of starting point
$width: remaining width
$height: remaining height