Skip to content
Taiwen Jiang edited this page Jul 19, 2013 · 2 revisions

Pi Media APIs

add($meta, $options = array())

  • $meta
    • uid: user id
    • name:
    • title:
    • time:
    • path: logical or absolute path to file
    • url: URL of the file
    • type: image, pdf, flash, video, audio, compress, text, html, file
    • content_type:
    • size:
    • attributes:
    • attributes-image: width, height
    • attributes-audio: length
  • $options

addImage($meta, $options = array())

  • $meta
    • uid: user id
    • name:
    • title:
    • time:
    • path: logical or absolute path to file
    • url: URL of the file
    • content_type:
    • size:
    • width:
    • height:
  • $options

addFlash($meta, $options = array())

  • $meta
    • uid: user id
    • name:
    • title:
    • time:
    • path: logical or absolute path to file
    • url: URL of the file
    • content_type:
    • size:
    • length:
  • $options

addFile($meta, $options = array())

  • $meta
    • uid: user id
    • name:
    • title:
    • time:
    • path: logical or absolute path to file
    • url: URL of the file
    • content_type:
    • size:
  • $options

get($id)

getPath($id)

getUrl($id)

getAttributes($id)

delete($id, $deleteFile = false)

Clone this wiki locally