19 declare(strict_types=1);
37 protected string $client_name,
45 return $this->client_name;
53 return $this->dav_factory->retrieveDAVObjectByRefID(
$ref_id);
57 return $this->getChildByParentRefId($this->repository_helper, $this->dav_factory,
ROOT_FOLDER_ID, $name);
65 return $this->getChildrenByParentRefId($this->repository_helper, $this->dav_factory,
ROOT_FOLDER_ID);
72 return $this->repository_helper->objectWithRefIdExists(
$ref_id) && $this->repository_helper->checkAccess(
76 }
catch (BadRequest) {
79 return $this->checkIfChildExistsByParentRefId(
80 $this->repository_helper,
89 return strtotime(
'2000-01-01');
94 $ref_parts = explode(
'_', $name);
95 if (count($ref_parts) == 2 && (
$ref_id = (
int) $ref_parts[1]) > 0) {
99 throw new NotFound(
"No id found for $name");
string $name_of_repository_root
getRefIdFromName(string $name)
__construct(protected string $client_name, protected ilWebDAVObjFactory $dav_factory, protected ilWebDAVRepositoryHelper $repository_helper)