ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
BaseContainer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use Sabre\DAV\ICollection;
24use Sabre\DAV\INode;
25
29abstract class BaseContainer extends BaseEntity implements ICollection, Entity
30{
31 public function createFile($name, $data = null): ?string
32 {
33 return $this->factory->createFile($this, $name, $data);
34 }
35
36 public function createDirectory($name): string
37 {
38 return $this->factory->createContainer($this, $name);
39 }
40
41 abstract public function getChild($name): INode;
42
43 public function getChildren(): array
44 {
45 return $this->factory->getChildren($this);
46 }
47
48 public function childExists($name): bool
49 {
50 return $this->factory->has($this, $name);
51 }
52
53 public function getFullPath(): string
54 {
55 return '';
56 }
57
58}
factory()