MEDIA Class Reference

List of all members.

Public Member Functions

 getCollectionList ()
 getMediaListByCollection ($collection, $filter= '')
 checkFilter ($strText, $strFilter)
 isValidCollection ($collectionName)
 addMediaObject ($collection, $uploadfile, $filename)
 addMediaObjectRaw ($collection, $filename, &$data)


Detailed Description

Media classes for nucleus

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
MEDIA.php 1116 2007-02-03 08:24:29Z kimitake
NucleusJP
MEDIA.php,v 1.6 2007/02/04 06:28:46 kimitake Exp
Represents the media objects for a certain member

Definition at line 25 of file MEDIA.php.


Member Function Documentation

MEDIA::getCollectionList (  ) 

Gets the list of collections available to the currently logged in member

Returns:
array of dirname => display name

Definition at line 33 of file MEDIA.php.

References $DIR_MEDIA, and $member.

Referenced by media_choose(), and media_select().

MEDIA::getMediaListByCollection ( collection,
filter = '' 
)

Returns an array of MEDIAOBJECT objects for a certain collection

Parameters:
$collection name of the collection
$filter filter on filename (defaults to none)

Definition at line 65 of file MEDIA.php.

References $DIR_MEDIA, and checkFilter().

Referenced by media_select().

MEDIA::checkFilter ( strText,
strFilter 
)

Definition at line 91 of file MEDIA.php.

Referenced by getMediaListByCollection().

MEDIA::isValidCollection ( collectionName  ) 

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

Definition at line 102 of file MEDIA.php.

References $DIR_MEDIA, and $member.

Referenced by addMediaObject().

MEDIA::addMediaObject ( collection,
uploadfile,
filename 
)

Adds an uploaded file to the media archive

Parameters:
collection collection
uploadfile the postFileInfo(..) array
filename the filename that should be used to save the file as (date prefix should be already added here)

Definition at line 125 of file MEDIA.php.

References $DIR_MEDIA, $manager, and isValidCollection().

Referenced by media_upload().

MEDIA::addMediaObjectRaw ( collection,
filename,
&$  data 
)

Adds an uploaded file to the media dir.

Parameters:
$collection collection to use
$filename the filename that should be used to save the file as (date prefix should be already added here)
&$data File data (binary)
NOTE: does not check if $collection is valid.

Definition at line 191 of file MEDIA.php.

References $DIR_MEDIA.

Referenced by _newMediaObject().


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



Generated on Wed Jun 25 17:26:02 2008 by  doxygen 1.5.5