◆ __get()
◆ __set()
◆ availableInRange()
static availableInRange |
( |
|
$range_id_or_object, |
|
|
|
$user_id |
|
) |
| |
|
static |
- Parameters
-
Object | string | $range_id_or_object | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ getDescriptionTemplate()
getDescriptionTemplate |
( |
| ) |
|
Returns a description template for PublicFolders.
- Returns
- string A string describing this folder type.
Implements FolderType.
◆ getEditTemplate()
Returns the edit template for this folder type.
- Returns
- Flexi_Template
Implements FolderType.
◆ getTypeName()
Returns a localised name of the PublicFolder type.
- Returns
- string The localised name of this folder type.
Implements FolderType.
◆ isFileDownloadable()
isFileDownloadable |
( |
|
$file_id, |
|
|
|
$user_id |
|
) |
| |
Files in PublicFolders are always downloadable.
- Parameters
-
string | $file_id | The ID to a FileRef. |
string | $user_id | The user who wishes to downlaod the file. |
- Returns
- bool True
Implements FolderType.
◆ isFileEditable()
isFileEditable |
( |
|
$file_id, |
|
|
|
$user_id |
|
) |
| |
Files in PublicFolders are editable for the owner only.
- Parameters
-
string | $file_id | The ID to a FileRef. |
string | $user_id | The user who wishes to edit the file. |
- Returns
- bool True, if the user is the owner of the file, false otherwise.
Implements FolderType.
◆ isFileWritable()
isFileWritable |
( |
|
$file_id, |
|
|
|
$user_id |
|
) |
| |
Files in PublicFolders are writable for the owner only.
- Parameters
-
string | $file_id | The ID to a FileRef. |
string | $user_id | The user who wishes to write to the file. |
- Returns
- bool True, if the user is the owner of the file, false otherwise.
Implements FolderType.
◆ isReadable()
PublicFolders are readable for the owner, or for all if viewable flag is set
- Parameters
-
string | $user_id | The user who wishes to read the folder. |
- Returns
- bool True
Implements FolderType.
◆ isVisible()
PublicFolders are visible for the owner, or for all if viewable flag is set
- Parameters
-
string | $user_id | The user who wishes to see the folder. |
- Returns
- bool True
Implements FolderType.
◆ setDataFromEditTemplate()
setDataFromEditTemplate |
( |
|
$request | ) |
|
Sets the data from a submitted edit template.
- Parameters
-
array | $request | The data from the edit template. |
- Returns
- PublicFolder A "reference" to this PublicFolder.
Implements FolderType.
◆ $sorter
The documentation for this class was generated from the following file: