ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\ResourceStorage\Revision\NullRevision Class Reference

Class NullRevision. More...

+ Inheritance diagram for ILIAS\ResourceStorage\Revision\NullRevision:
+ Collaboration diagram for ILIAS\ResourceStorage\Revision\NullRevision:

Public Member Functions

 __construct (ResourceIdentification $identification)
 NullRevision constructor. More...
 
 getIdentification ()
 @inheritDoc More...
 
 getVersionNumber ()
 @inheritDoc More...
 
 getCreationDate ()
 @inheritDoc More...
 
 getInformation ()
 @inheritDoc More...
 
 setInformation (Information $information)
 
 setUnavailable ()
 
 isAvailable ()
 @inheritDoc More...
 
 getOwnerId ()
 
 setTitle (string $title)
 
 getTitle ()
 
 getIdentification ()
 
 getVersionNumber ()
 
 getInformation ()
 
 setInformation (Information $information)
 
 setUnavailable ()
 
 isAvailable ()
 
 getOwnerId ()
 
 setTitle (string $title)
 
 getTitle ()
 

Private Attributes

 $identification
 

Additional Inherited Members

- Data Fields inherited from ILIAS\ResourceStorage\Revision\Revision
const STATUS_ACTIVE = 1
 

Detailed Description

Class NullRevision.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 14 of file NullRevision.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\ResourceStorage\Revision\NullRevision::__construct ( ResourceIdentification  $identification)

NullRevision constructor.

Parameters
ResourceIdentification$identification

Definition at line 26 of file NullRevision.php.

27 {
28 $this->identification = $identification;
29 }

References ILIAS\ResourceStorage\Revision\NullRevision\$identification.

Member Function Documentation

◆ getCreationDate()

ILIAS\ResourceStorage\Revision\NullRevision::getCreationDate ( )

@inheritDoc

Definition at line 50 of file NullRevision.php.

50 : DateTimeImmutable
51 {
52 return new DateTimeImmutable();
53 }

◆ getIdentification()

ILIAS\ResourceStorage\Revision\NullRevision::getIdentification ( )

@inheritDoc

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 34 of file NullRevision.php.

34 : ResourceIdentification
35 {
37 }

References ILIAS\ResourceStorage\Revision\NullRevision\$identification.

◆ getInformation()

ILIAS\ResourceStorage\Revision\NullRevision::getInformation ( )

@inheritDoc

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 58 of file NullRevision.php.

58 : Information
59 {
60 return new FileInformation();
61 }

◆ getOwnerId()

ILIAS\ResourceStorage\Revision\NullRevision::getOwnerId ( )

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 80 of file NullRevision.php.

80 : int
81 {
82 return 0;
83 }

◆ getTitle()

ILIAS\ResourceStorage\Revision\NullRevision::getTitle ( )

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 90 of file NullRevision.php.

90 : string
91 {
92 return '';
93 }

◆ getVersionNumber()

ILIAS\ResourceStorage\Revision\NullRevision::getVersionNumber ( )

@inheritDoc

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 42 of file NullRevision.php.

42 : int
43 {
44 return 0;
45 }

◆ isAvailable()

ILIAS\ResourceStorage\Revision\NullRevision::isAvailable ( )

@inheritDoc

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 75 of file NullRevision.php.

75 : bool
76 {
77 return false;
78 }

◆ setInformation()

ILIAS\ResourceStorage\Revision\NullRevision::setInformation ( Information  $information)

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 63 of file NullRevision.php.

64 {
65 }

◆ setTitle()

ILIAS\ResourceStorage\Revision\NullRevision::setTitle ( string  $title)

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 85 of file NullRevision.php.

85 : Revision
86 {
87 // do nothing
88 }

◆ setUnavailable()

ILIAS\ResourceStorage\Revision\NullRevision::setUnavailable ( )

Implements ILIAS\ResourceStorage\Revision\Revision.

Definition at line 67 of file NullRevision.php.

67 : void
68 {
69 // do nothing
70 }

Field Documentation

◆ $identification

ILIAS\ResourceStorage\Revision\NullRevision::$identification
private

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