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

Public Member Functions

 __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 29 of file BaseEntity.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 31 of file BaseEntity.php.

35 {
36 }

Member Function Documentation

◆ delete()

ILIAS\WebDAV\Entity\BaseEntity::delete ( )

Definition at line 38 of file BaseEntity.php.

38 : void
39 {
40 $this->factory->delete($this);
41 }
factory()

References factory().

+ Here is the call graph for this function:

◆ getLastModified()

ILIAS\WebDAV\Entity\BaseEntity::getLastModified ( )

Definition at line 55 of file BaseEntity.php.

55 : ?int
56 {
57 return $this->object_proxy?->getLastModified();
58 }

◆ getName()

ILIAS\WebDAV\Entity\BaseEntity::getName ( )

Reimplemented in ILIAS\WebDAV\Entity\MountPoint.

Definition at line 43 of file BaseEntity.php.

43 : string
44 {
45 return $this->object_proxy?->getName() ?? '';
46 }

Referenced by ILIAS\WebDAV\Entity\Container\getFullPath(), and ILIAS\WebDAV\Entity\File\put().

+ Here is the caller graph for this function:

◆ getObjectProxy()

◆ getPath()

ILIAS\WebDAV\Entity\BaseEntity::getPath ( )

Implements ILIAS\WebDAV\Entity\Entity.

Definition at line 65 of file BaseEntity.php.

65 : string
66 {
67 return $this->path;
68 }
$path
Definition: ltiservices.php:30

References $path.

◆ setName()

ILIAS\WebDAV\Entity\BaseEntity::setName (   $name)

Definition at line 48 of file BaseEntity.php.

48 : string
49 {
50 $this->object_proxy?->setName($name);
51 $this->factory->rename($this);
52 return $name;
53 }

References factory().

+ Here is the call graph for this function:

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