◆ __construct()
ilWebDAVObjFactory::__construct |
( |
protected ilWebDAVRepositoryHelper |
$repository_helper, |
|
|
protected ilObjUser |
$current_user, |
|
|
protected Services |
$resource_storage, |
|
|
protected RequestInterface |
$request, |
|
|
protected ilLanguage |
$language, |
|
|
protected string |
$client_id, |
|
|
protected bool |
$versioning_enabled |
|
) |
| |
◆ checkReadAndVisibleAccessForObj()
ilWebDAVObjFactory::checkReadAndVisibleAccessForObj |
( |
int |
$child_ref | ) |
|
|
protected |
◆ createDAVObject()
ilWebDAVObjFactory::createDAVObject |
( |
ilObject |
$ilias_object, |
|
|
int |
$parent_ref_id |
|
) |
| |
Definition at line 108 of file class.ilWebDAVObjFactory.php.
References $ref_id, ilObject\create(), ilObject\createReference(), ilObject\getRefId(), ilObject\getTitle(), ilObject\getType(), ilWebDAVNotDavableException\OBJECT_TITLE_NOT_DAVABLE, ilObject\putInTree(), and ilObject\setPermissions().
110 if (!$this->isDAVableObjTitle($ilias_object->
getTitle())) {
114 if ($ilias_object->
getType() ===
'file' &&
115 !$this->hasValidFileExtension($ilias_object->
getTitle())) {
119 if ($ilias_object->
getRefId() === 0) {
122 $ilias_object->
putInTree($parent_ref_id);
128 if ($ilias_object->
getType() ===
'file') {
131 $this->repository_helper,
132 $this->resource_storage,
135 $this->versioning_enabled
144 $this->repository_helper
const OBJECT_TITLE_NOT_DAVABLE
setPermissions(int $parent_ref_id)
createReference()
creates reference for object
create()
note: title, description and type should be set when this function is called
putInTree(int $parent_ref_id)
maybe this method should be in tree object!?
◆ getClientNode()
ilWebDAVObjFactory::getClientNode |
( |
string |
$name | ) |
|
◆ getMountPoint()
ilWebDAVObjFactory::getMountPoint |
( |
| ) |
|
◆ getProblemInfoFile()
ilWebDAVObjFactory::getProblemInfoFile |
( |
int |
$container_ref_id | ) |
|
◆ retrieveDAVObjectByRefID()
ilWebDAVObjFactory::retrieveDAVObjectByRefID |
( |
int |
$ref_id | ) |
|
Definition at line 58 of file class.ilWebDAVObjFactory.php.
References $ref_id, checkReadAndVisibleAccessForObj(), ilObjectFactory\getInstanceByRefId(), null, ilWebDAVNotDavableException\OBJECT_HIDDEN, ilWebDAVNotDavableException\OBJECT_TITLE_NOT_DAVABLE, and ilWebDAVNotDavableException\OBJECT_TYPE_NOT_DAVABLE.
61 throw new Forbidden(
"No read permission for object with reference ID $ref_id");
64 if (isset($this->_cache[
$ref_id])) {
70 if ($ilias_object ===
null) {
74 $ilias_object_type = $ilias_object->getType();
76 if (!in_array($ilias_object_type, $this->davable_object_types)) {
80 if ($this->isHiddenFile($ilias_object->getTitle())) {
84 if ($this->hasTitleForbiddenChars($ilias_object->getTitle())) {
88 if ($ilias_object_type ===
'file') {
91 $this->repository_helper,
92 $this->resource_storage,
95 $this->versioning_enabled
104 $this->repository_helper
const OBJECT_TYPE_NOT_DAVABLE
const OBJECT_TITLE_NOT_DAVABLE
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
checkReadAndVisibleAccessForObj(int $child_ref)
◆ $_cache
array ilWebDAVObjFactory::$_cache = [] |
|
protected |
◆ $davable_object_types
array ilWebDAVObjFactory::$davable_object_types |
|
private |
The documentation for this class was generated from the following file: