Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
UnknownFolderType Class Reference
Inheritance diagram for UnknownFolderType:
FolderType

Public Member Functions

 __construct ($folderdata)
 
 getIcon ($role= 'info')
 
 getId ()
 
 __get ($attribute)
 
 isVisible ($user_id)
 
 isReadable ($user_id)
 
 isWritable ($user_id)
 
 isEditable ($user_id)
 
 isSubfolderAllowed ($user_id)
 
 getDescriptionTemplate ()
 
 getEditTemplate ()
 
 setDataFromEditTemplate ($request)
 
 validateUpload (FileType $file, $user_id)
 
 addFile (FileType $file, $user_id=null)
 
 getSubfolders ()
 
 getFiles ()
 
 getParent ()
 
 deleteFile ($file_ref_id)
 
 createSubfolder (FolderType $folderdata)
 
 deleteSubfolder ($subfolder_id)
 
 delete ()
 
 store ()
 
 isFileDownloadable ($fileref_or_id, $user_id)
 
 isFileEditable ($fileref_or_id, $user_id)
 
 isFileWritable ($fileref_or_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)
 

Protected Attributes

 $folderdata
 

Constructor & Destructor Documentation

__construct (   $folderdata)

StandardFolder constructor.

Parameters
Folder | null$folderdata

Member Function Documentation

__get (   $attribute)
Parameters
$attribute
Returns
mixed
addFile ( FileType  $file,
  $user_id = null 
)

Adds FileType object to this folder and returns the new FileType object.

Parameters
FileType$file
$user_id: id of the given user
Returns
FileType

Implements FolderType.

static availableInRange (   $range_id_or_object,
  $user_id 
)
static
Parameters
Object | string$range_id_or_object
string$user_id
Returns
bool

Implements FolderType.

copySettings ( )
createSubfolder ( FolderType  $folderdata)
Parameters
FolderType$folderdata

Implements FolderType.

delete ( )
Returns
bool

Implements FolderType.

deleteFile (   $file_ref_id)
Parameters
string$file_ref_id
Returns
bool

Implements FolderType.

deleteSubfolder (   $subfolder_id)
Parameters
string$subfolder_id
Returns
bool

Implements FolderType.

getAdditionalActionButtons ( )

Returns an array of Studip or Studip objects that get displayed underneath the files-table.

Returns
array of Studip or Studip

Implements FolderType.

getAdditionalColumnOrderWeigh (   $column_index)

Returns an integer that marks the value the content of the given column should be ordered by.

Parameters
string$column_index
Returns
integer : order value

Implements FolderType.

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

Returns
array('col1' => _("Anfragestatus"))

Implements FolderType.

getContentForAdditionalColumn (   $column_index)

Returns the content for that additional column, if it exists. You can return null a string or a Flexi_Template as the content.

Parameters
string$column_index
Returns
null|string|Flexi_Template

Implements FolderType.

getDescriptionTemplate ( )

returns description of the folder

Returns
Flexi_Template | string

Implements FolderType.

getEditTemplate ( )

returns template form, must not contain opening and closing <form> tags

Returns
Flexi_Template | string

Implements FolderType.

getFiles ( )
Returns
array

Implements FolderType.

getIcon (   $role = 'info')
Returns
Icon

Implements FolderType.

getId ( )
Returns
string

Implements FolderType.

getParent ( )
Returns
null

Implements FolderType.

getSubfolders ( )
Returns
array

Implements FolderType.

static getTypeName ( )
static
Returns
string

Implements FolderType.

isEditable (   $user_id)
Parameters
$user_id
Returns
bool

Implements FolderType.

isFileDownloadable (   $fileref_or_id,
  $user_id 
)
Parameters
string$fileref_or_id
string$user_id
Returns
bool

Implements FolderType.

isFileEditable (   $fileref_or_id,
  $user_id 
)
Parameters
string$fileref_or_id
string$user_id
Returns
bool

Implements FolderType.

isFileWritable (   $fileref_or_id,
  $user_id 
)
Parameters
$fileref_or_id
string$user_id
Returns
bool

Implements FolderType.

isReadable (   $user_id)
Parameters
$user_id
Returns
bool

Implements FolderType.

isSubfolderAllowed (   $user_id)
Parameters
$user_id
Returns
bool

Implements FolderType.

isVisible (   $user_id)
Parameters
$user_id
Returns
bool

Implements FolderType.

isWritable (   $user_id)
Parameters
$user_id
Returns
bool

Implements FolderType.

setDataFromEditTemplate (   $request)
Parameters
ArrayAccess | Request$request

Implements FolderType.

store ( )
Returns
bool

Implements FolderType.

validateUpload ( FileType  $file,
  $user_id 
)
Parameters
$uploadedfile
string$user_id

Implements FolderType.

Field Documentation

$folderdata
protected

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