[ Index ]

PHP Cross Reference of Nucleus CMS 3.32

title

Body

[close]

/nucleus/libs/ -> MEDIA.php (summary)

Media classes for nucleus

Copyright: Copyright (C) 2002-2007 The Nucleus Group
License: http://nucleuscms.org/license.txt GNU General Public License
Version: $Id: MEDIA.php 1116 2007-02-03 08:24:29Z kimitake $
File Size: 270 lines (8 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

MEDIA:: (6 methods):
  getCollectionList()
  getMediaListByCollection()
  checkFilter()
  isValidCollection()
  addMediaObject()
  addMediaObjectRaw()

MEDIAOBJECT:: (2 methods):
  MEDIAOBJECT()
  sort_media()


Class: MEDIA  - X-Ref

Represents the media objects for a certain member

getCollectionList()   X-Ref
Gets the list of collections available to the currently logged
in member

returns: array of dirname => display name

getMediaListByCollection($collection, $filter = '')   X-Ref
Returns an array of MEDIAOBJECT objects for a certain collection

param: $collection
param: $filter

checkFilter($strText, $strFilter)   X-Ref
No description

isValidCollection($collectionName)   X-Ref
checks if a collection exists with the given name, and if it's
allowed for the currently logged in member to upload files to it


addMediaObject($collection, $uploadfile, $filename)   X-Ref
Adds an uploaded file to the media archive

param: collection
param: uploadfile
param: filename

addMediaObjectRaw($collection, $filename, &$data)   X-Ref
Adds an uploaded file to the media dir.

param: $collection
param: $filename
param: &$data

Class: MEDIAOBJECT  - X-Ref

Represents the characteristics of one single media-object

Description of properties:
- filename: filename, without paths
- timestamp: last modification (unix timestamp)
- collection: collection to which the file belongs (can also be a owner ID, for private collections)
- private: true if the media belongs to a private member collection
MEDIAOBJECT($collection, $filename, $timestamp)   X-Ref
No description

sort_media($a, $b)   X-Ref
User-defined sort method to sort an array of MEDIAOBJECTS




Generated: Tue Feb 12 15:34:36 2008 Cross-referenced by PHPXref 0.7