« Previous | Next » 

Revision 8cdaae41

ID8cdaae41c0af199402358e2171766af14f9379e9

Added by Karsten Dambekalns about 9 years ago

[FEATURE] Add __toString() and make Resource use more convenient

To use a Resource with file operations, one can use the
resource:// scheme and the __toString() method of any
ResourcePointer.

To make this a little easier, this change adds two new
methods to the Resource class:

__toString() returns the SHA1 of the ResourcePointer the
Resource is holding (as is documented for ages).

getUri() returns a ready-to-use resource://<sha1> URI of
the ResourcePointer the Resource is holding.

Change-Id: Ie3cb01214c924c8e79ae5a997dc15e3679940e86
Fixes: #29694
Resolves: #34177
Releases: 1.0, 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted