Stud.IP
6.0
|
Public Member Functions | |
getIcon ($role) | |
getId () | |
isVisible ($user_id) | |
isReadable ($user_id) | |
isWritable ($user_id) | |
isEditable ($user_id) | |
isSubfolderAllowed ($user_id) | |
getDescriptionTemplate () | |
getSubfolders () | |
getFiles () | |
getParent () | |
getEditTemplate () | |
setDataFromEditTemplate ($folderdata) | |
validateUpload (FileType $file, $user_id) | |
addFile (FileType $file, $user_id=null) | |
deleteFile ($file_ref_id) | |
createSubfolder (FolderType $foldertype) | |
deleteSubfolder ($subfolder_id) | |
delete () | |
store () | |
isFileDownloadable ($file_ref_id, $user_id) | |
isFileEditable ($file_ref_id, $user_id) | |
isFileWritable ($file_ref_id, $user_id) | |
getAdditionalColumns () | |
getContentForAdditionalColumn ($column_index) | |
getAdditionalColumnOrderWeigh ($column_index) | |
getAdditionalActionButtons () | |
copySettings () | |
Static Public Member Functions | |
static | getTypeName () |
static | availableInRange ($range_id_or_object, $user_id) |
addFile | ( | FileType | $file, |
$user_id = null |
|||
) |
Adds FileType object to this folder and returns the new FileType object.
FileType | $file | |
$user_id | : id of the given user |
Implemented in StandardFolder, VirtualFolderType, InboxOutboxFolder, and UnknownFolderType.
|
static |
This method tells if the FolderType implementation can be created in a specific range type.
Some FolderType implementations aren't useful in conjunction with a specific range type. An FolderType implementation therefore must provide this method so that other parts of the file area system can easily check if folders of the FolderType implementation can be placed inside standard folders.
string | Object | $range_id_or_object | id or object of type "course", "user", "institute", "message" |
string | $user_id |
Implemented in MessageFolder, InboxOutboxFolder, VirtualFolderType, PublicFolder, StandardFolder, UnknownFolderType, InstitutePublicFolder, TimedFolder, CourseGroupFolder, CourseDateFolder, CoursePublicFolder, PublicFolder, HomeworkFolder, CourseTopicFolder, RootFolder, HiddenFolder, PermissionEnabledFolder, MaterialFolder, MVVFolder, and ResourceFolder.
copySettings | ( | ) |
Returns (perhaps only a subset of) description and data_content of the folder for copying
Implemented in StandardFolder, MessageFolder, VirtualFolderType, InboxOutboxFolder, UnknownFolderType, PermissionEnabledFolder, CourseDateFolder, and CourseTopicFolder.
createSubfolder | ( | FolderType | $foldertype | ) |
$foldertype | FolderType |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PublicFolder, and ResourceFolder.
delete | ( | ) |
Deletes this folder.
Implemented in StandardFolder, MessageFolder, VirtualFolderType, InboxOutboxFolder, UnknownFolderType, and PublicFolder.
deleteFile | ( | $file_ref_id | ) |
Deletes a file in this folder.
string | $file_ref_id | The ID of the FileRef object of the file that shall be deleted. |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, and PublicFolder.
deleteSubfolder | ( | $subfolder_id | ) |
Deletes a subfolder in this folder.
string | $subfolder_id | The ID of the subfolder that shall be deleted. |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PublicFolder, and ResourceFolder.
getAdditionalActionButtons | ( | ) |
Returns an array of Studip or Studip objects that get displayed underneath the files-table.
Implemented in StandardFolder, VirtualFolderType, InboxOutboxFolder, and UnknownFolderType.
getAdditionalColumnOrderWeigh | ( | $column_index | ) |
Returns an integer that marks the value the content of the given column should be ordered by.
string | $column_index |
Implemented in StandardFolder, VirtualFolderType, InboxOutboxFolder, and UnknownFolderType.
getAdditionalColumns | ( | ) |
Returns an associative array of additional colums with the index the id of the column and their values as the localized names of the columns
Implemented in StandardFolder, VirtualFolderType, UnknownFolderType, and InboxOutboxFolder.
getContentForAdditionalColumn | ( | $column_index | ) |
Returns the content for that additional column, if it exists. You can return null, a string or a Flexi as the content.
string | $column_index |
Implemented in StandardFolder, VirtualFolderType, InboxOutboxFolder, and UnknownFolderType.
getDescriptionTemplate | ( | ) |
returns description of the folder
Implemented in MessageFolder, StandardFolder, VirtualFolderType, CourseGroupFolder, TimedFolder, UnknownFolderType, PublicFolder, CourseDateFolder, CourseTopicFolder, InboxOutboxFolder, PublicFolder, CoursePublicFolder, PermissionEnabledFolder, HomeworkFolder, InstitutePublicFolder, MaterialFolder, HiddenFolder, and MVVFolder.
getEditTemplate | ( | ) |
returns template form, must not contain opening and closing <form> tags
Implemented in MessageFolder, StandardFolder, TimedFolder, PublicFolder, InboxOutboxFolder, VirtualFolderType, PublicFolder, UnknownFolderType, CourseGroupFolder, RootFolder, CoursePublicFolder, PermissionEnabledFolder, ResourceFolder, CourseDateFolder, HomeworkFolder, CourseTopicFolder, HiddenFolder, and MaterialFolder.
getFiles | ( | ) |
Returns a list of files of this folder.
Implemented in StandardFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PermissionEnabledFolder, OutboxFolder, and InboxFolder.
getIcon | ( | $role | ) |
Returns the name of the icon shape that shall be used with the FolderType implementation.
string | $role | role of icon |
Implemented in MessageFolder, TimedFolder, CourseGroupFolder, VirtualFolderType, PublicFolder, PermissionEnabledFolder, StandardFolder, UnknownFolderType, InboxOutboxFolder, HomeworkFolder, CourseDateFolder, PublicFolder, HiddenFolder, CoursePublicFolder, CourseTopicFolder, MaterialFolder, OutboxFolder, InboxFolder, and ResourceFolder.
getId | ( | ) |
Returns the ID of the folder that is managed from this FolderType instance.
Implemented in MessageFolder, VirtualFolderType, PublicFolder, StandardFolder, InboxOutboxFolder, and UnknownFolderType.
getParent | ( | ) |
Returns the FolderType of the parent folder or null if this is the top folder.
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, PublicFolder, InboxOutboxFolder, and RootFolder.
getSubfolders | ( | ) |
Returns a list of subfolders of this folder.
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, and PublicFolder.
|
static |
Returns a human-friendly representation of the FolderType's name.
Implemented in MessageFolder, PublicFolder, VirtualFolderType, MVVFolder, TimedFolder, MaterialFolder, InboxOutboxFolder, StandardFolder, UnknownFolderType, HiddenFolder, CourseDateFolder, CourseGroupFolder, HomeworkFolder, OutboxFolder, PermissionEnabledFolder, CoursePublicFolder, InboxFolder, PublicFolder, CourseTopicFolder, InstitutePublicFolder, RootFolder, and ResourceFolder.
isEditable | ( | $user_id | ) |
Determines if a user may have edit permissions for the folder.
string | $user_id | The user who wishes to edit the folder. |
Implemented in MessageFolder, StandardFolder, VirtualFolderType, UnknownFolderType, PublicFolder, InboxOutboxFolder, RootFolder, and ResourceFolder.
isFileDownloadable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may download the file.
string | $file_ref_id | The ID of the FileRef object of a file that shall be downloaded. |
string | $user_id | The user who wishes to download the file. |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PublicFolder, CoursePublicFolder, PermissionEnabledFolder, ResourceFolder, HiddenFolder, PublicFolder, and MVVFolder.
isFileEditable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may edit the file.
string | $file_ref_id | The ID of the FileRef object of a file that shall be edited. |
string | $user_id | The user who wishes to edit the file. |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PublicFolder, TimedFolder, PublicFolder, ResourceFolder, and HomeworkFolder.
isFileWritable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may write to the file.
string | $file_id | The FileRef object of a file that shall be written. |
string | $user_id | The user who wishes to write to the file. |
Implemented in StandardFolder, MessageFolder, VirtualFolderType, UnknownFolderType, InboxOutboxFolder, PublicFolder, TimedFolder, PublicFolder, ResourceFolder, and HomeworkFolder.
isReadable | ( | $user_id | ) |
Determines if a user may read the content of the folder.
string | $user_id | The user who wishes to read the folder's content. |
Implemented in MessageFolder, StandardFolder, VirtualFolderType, HomeworkFolder, UnknownFolderType, PublicFolder, PublicFolder, CoursePublicFolder, InboxOutboxFolder, CourseGroupFolder, PermissionEnabledFolder, TimedFolder, ResourceFolder, and MVVFolder.
isSubfolderAllowed | ( | $user_id | ) |
Determines if a user may create a subfolder in this folder.
string | $user_id | The user who wishes to create a subfolder. |
Implemented in MessageFolder, StandardFolder, VirtualFolderType, UnknownFolderType, PublicFolder, InboxOutboxFolder, CourseGroupFolder, ResourceFolder, PermissionEnabledFolder, HomeworkFolder, and MVVFolder.
isVisible | ( | $user_id | ) |
Determines if a user may see the folder.
$user_id |
Implemented in MessageFolder, VirtualFolderType, StandardFolder, UnknownFolderType, PublicFolder, PublicFolder, InboxOutboxFolder, CoursePublicFolder, PermissionEnabledFolder, CourseGroupFolder, TimedFolder, InstitutePublicFolder, and ResourceFolder.
isWritable | ( | $user_id | ) |
Determines if a user may have write permissions for the folder.
string | $user_id | The user who wishes to write into the folder. |
Implemented in MessageFolder, StandardFolder, VirtualFolderType, UnknownFolderType, PublicFolder, InboxOutboxFolder, CourseGroupFolder, TimedFolder, PermissionEnabledFolder, ResourceFolder, and RootFolder.
setDataFromEditTemplate | ( | $folderdata | ) |
gets data from edit form
ArrayAccess | Request | $folderdata |
Implemented in MessageFolder, StandardFolder, TimedFolder, PublicFolder, InboxOutboxFolder, VirtualFolderType, PublicFolder, UnknownFolderType, CourseGroupFolder, RootFolder, CoursePublicFolder, ResourceFolder, CourseDateFolder, CourseTopicFolder, and HiddenFolder.
store | ( | ) |
Implemented in MessageFolder, VirtualFolderType, UnknownFolderType, StandardFolder, PublicFolder, InboxOutboxFolder, and RootFolder.
validateUpload | ( | FileType | $file, |
$user_id | |||
) |
Validates a file upload.
FileType | file The file to be validated. | |
string | $user_id | The ID of the user who uploaded the file. |
Implemented in MessageFolder, StandardFolder, InboxOutboxFolder, VirtualFolderType, UnknownFolderType, and PermissionEnabledFolder.