Public Member Functions | |
| getCollectionList () | |
| getMediaListByCollection ($collection, $filter= '') | |
| checkFilter ($strText, $strFilter) | |
| isValidCollection ($collectionName) | |
| addMediaObject ($collection, $uploadfile, $filename) | |
| addMediaObjectRaw ($collection, $filename, &$data) | |
http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 25 of file MEDIA.php.
| MEDIA::getCollectionList | ( | ) |
Gets the list of collections available to the currently logged in member
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
| $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 | |||
| ) |
| 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
| 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.
| $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) |
Definition at line 191 of file MEDIA.php.
References $DIR_MEDIA.
Referenced by _newMediaObject().
1.5.5