|
Stud.IP
jlu_4.3 Revision 64286
|


Static Public Member Functions | |
| static | findTopFolder ($message_id) |
| static | createTopFolder ($message_id) |
| static | getNumMessageAttachments ($message_id) |
| static | availableInRange ($range_id_or_object, $user_id) |
| static | getTypeName () |
| static | getTypeName () |
| static | availableInRange ($range_id_or_object, $user_id) |
Protected Attributes | |
| $folder | |
| __construct | ( | $folder = null | ) |
| Folder|null | folder The folder object for this FolderType |

| __get | ( | $attribute | ) |
| string | $attribute |
|
static |
This method returns always false since MessageFolder types are not creatable in standard folders. They are a standalone folder type.
Implements FolderType.
| createFile | ( | $file | ) |
This method handles creating a file inside the MessageFolder.
| File | array | $file | The file that shall be created inside the MessageFolder. |
Implements FolderType.

| createSubfolder | ( | FolderType | $folderdata | ) |
MessageFolders cannot have subfolders.
Implements FolderType.
|
static |
Creates a root folder (top folder) for a message referenced by its ID.
| string | $message_id | The ID of a message for which a root folder shall be generated. |


| delete | ( | ) |
Deletes the MessageFolder object.
Implements FolderType.
| deleteFile | ( | $file_ref_id | ) |
Handles the deletion of a file inside this folder.
| string | $file_ref_id | The ID of the FileRef whose file shall be deleted. |
Implements FolderType.
| deleteSubfolder | ( | $subfolder_id | ) |
MessageFolders cannot have subfolders.
Implements FolderType.
|
static |
Retrieves or creates the top folder for a message.
Creating top folders for messages is a special task since message attachments can be stored when the message wasn't sent yet. This means that message attachments of an unsent message are stored in a top folder with a range-ID that doesn't belong to a message table entry (yet). Therefore we must create the top folder manually when we can't find the top folder by the method Folder::getTopFolder.
| string | $message_id | The message-ID of the message whose top folder shall be returned |

| getDescriptionTemplate | ( | ) |
MessageFolders don't have a description template.
Implements FolderType.
| getEditTemplate | ( | ) |
MessageFolders don't have an edit template.
Implements FolderType.
| getFiles | ( | ) |
Returns the files of this MessageFolder (e.g. the attachments of a message).
Implements FolderType.
| getIcon | ( | $role | ) |
Returns the Icon object for the MessageFolder type.
Implements FolderType.

| getId | ( | ) |
Returns the ID of the folder object of this MessageFolder.
Implements FolderType.
|
static |
Returns the amount of attachments for a message.
| string | $message_id | The ID of a message. |

| getParent | ( | ) |
MessageFolders don't have parents.
Implements FolderType.
| getSubfolders | ( | ) |
MessageFolders don't have subfolders.
Implements FolderType.
|
static |
Returns a localised name of the MessageFolder type.
Implements FolderType.
| isEditable | ( | $user_id | ) |
MessageFolders are never editable.
Implements FolderType.
| isFileDownloadable | ( | $file_ref_id, | |
| $user_id | |||
| ) |
See method MessageFolder::isReadable
Implements FolderType.

| isFileEditable | ( | $file_ref_id, | |
| $user_id | |||
| ) |
Files inside MessageFolders are not editable.
Implements FolderType.
| isFileWritable | ( | $file_ref_id, | |
| $user_id | |||
| ) |
Files inside MessageFolders are not writable.
Implements FolderType.
| isReadable | ( | $user_id | ) |
This method checks if a specified user can read the MessageFolder object.
| string | $user_id | The ID of the user whose read permission shall be checked. |
Implements FolderType.


| isSubfolderAllowed | ( | $user_id | ) |
MessageFolders will never allow subfolders.
Implements FolderType.
| isVisible | ( | $user_id | ) |
See method MessageFolder::isReadable.
Implements FolderType.

| isWritable | ( | $user_id | ) |
MessageFolders are only writable for their owners.
Implements FolderType.
| setDataFromEditTemplate | ( | $request | ) |
MessageFolders don't have an edit template and therefore cannot handle requests from such templates.
Implements FolderType.
| store | ( | ) |
Stores the MessageFolder object.
Implements FolderType.
| validateUpload | ( | $uploaded_file, | |
| $user_id | |||
| ) |
This method handles file upload validation.
| array | $uploaded_file | The uploaded file that shall be validated. |
| string | $user_id | The user who wishes to upload a file in this MessageFolder. |
Implements FolderType.

|
protected |