36 $obj_id = $is_reference ? $this->repo_helper->getObjectIdFromRefId(
$id) :
$id;
38 $type = $this->repo_helper->getObjectTypeFromObjId($obj_id);
39 $title = $this->repo_helper->getObjectTitleFromObjId($obj_id);
90 foreach (str_split(
'\\<>/:*?"|#') as $forbidden_character) {
91 if (strpos($title, $forbidden_character) !==
false) {
108 $prefix = substr($title, 0, 1);
109 return $prefix ===
'.';
122 $type = $this->repo_helper->getObjectTypeFromRefId($ref_id);
125 if ($this->repo_helper->objectWithRefIdExists($ref_id)) {
143 throw new BadRequest(
'Unknown filetype');
154 include_once(
"./Services/Utilities/classes/class.ilFileUtils.php");
isDAVableObjTitle(string $title)
Check if title is displayable in WebDAV.
hasInvalidPrefixInTitle(string $title)
Forbidden are titles that begin with a single dot.
isDAVableObjType(string $type)
Check if the given object type is compatible to be represented as a WebDAV object.
Class ilWebDAVRepositoryHelper.
if(!array_key_exists('StateId', $_REQUEST)) $id
__construct(ilWebDAVRepositoryHelper $repo_helper)
ilWebDAVObjDAVHelper constructor.
Class ilWebDAVObjDAVHelper.
isValidFileNameWithValidFileExtension(string $a_title)
isDAVableObject($id, $is_reference=true, $do_name_check=true)
Check if given object (either obj_id or ref_id) is compatible to be represented as a WebDAV object...
createDAVObjectForRefId(int $ref_id, string $type='')
Creates a DAV Object for the given ref id.
hasTitleForbiddenChars(string $title)
Check for forbidden chars in title that are making trouble if displayed in WebDAV.
static getValidFilename($a_filename)
Get valid filename.