ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Entity\Container Class Reference
+ Inheritance diagram for ILIAS\WebDAV\Entity\Container:
+ Collaboration diagram for ILIAS\WebDAV\Entity\Container:

Public Member Functions

 __construct (Factory $factory, string $path, ?Proxy $object_proxy=null, protected ?Container $parent=null)
 
 getParent ()
 
 getChild ($name)
 
 getFullPath ()
 
- Public Member Functions inherited from ILIAS\WebDAV\Entity\BaseContainer
 createFile ($name, $data=null)
 
 createDirectory ($name)
 
 getChild ($name)
 
 getChildren ()
 
 childExists ($name)
 
 getFullPath ()
 
- Public Member Functions inherited from ILIAS\WebDAV\Entity\BaseEntity
 __construct (protected Factory $factory, protected string $path, protected ?Proxy $object_proxy=null)
 
 delete ()
 
 getName ()
 
 setName ($name)
 
 getLastModified ()
 
 getObjectProxy ()
 
 getPath ()
 
- Public Member Functions inherited from ILIAS\WebDAV\Entity\Entity
 __construct (Factory $factory, string $path, ?Proxy $proxy=null,)
 
 getObjectProxy ()
 
 getPath ()
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 31 of file Container.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\WebDAV\Entity\Container::__construct ( Factory  $factory,
string  $path,
?Proxy  $object_proxy = null,
protected ?Container  $parent = null 
)

Definition at line 33 of file Container.php.

38 {
39 parent::__construct($factory, $path, $object_proxy);
40 }
$path
Definition: ltiservices.php:30
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $path, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getChild()

ILIAS\WebDAV\Entity\Container::getChild (   $name)

Reimplemented from ILIAS\WebDAV\Entity\BaseContainer.

Reimplemented in ILIAS\WebDAV\Entity\MountPoint.

Definition at line 47 of file Container.php.

47 : INode
48 {
49 if ($name === ProblemInfoFile::FILE_NAME) {
50 $info_file = $this->factory->getProblemInfoFile($this);
51 if ($info_file->hasProblems()) {
52 return $info_file;
53 }
54 throw new NotFound($name);
55 }
56 return $this->factory->get($name, $this) ?? throw new NotFound($name);
57 }
factory()

References factory(), and ILIAS\WebDAV\Entity\ProblemInfoFile\FILE_NAME.

+ Here is the call graph for this function:

◆ getFullPath()

ILIAS\WebDAV\Entity\Container::getFullPath ( )

Reimplemented from ILIAS\WebDAV\Entity\BaseContainer.

Definition at line 60 of file Container.php.

60 : string
61 {
62 $path = $this->getName();
63 $parent = $this->getParent();
64 while ($parent !== null) {
65 $path = $parent->getName() . '/' . $path;
66 $parent = $parent->getParent();
67 if ($parent?->getParent() === null) {
68 break;
69 }
70 }
71 return $path;
72 }

References $path, ILIAS\WebDAV\Entity\BaseEntity\getName(), and ILIAS\WebDAV\Entity\Container\getParent().

+ Here is the call graph for this function:

◆ getParent()

ILIAS\WebDAV\Entity\Container::getParent ( )

Definition at line 42 of file Container.php.

42 : ?Container
43 {
44 return $this->parent;
45 }

Referenced by ILIAS\WebDAV\Entity\Container\getFullPath().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: