Expose ETag on single object get methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -81,4 +81,8 @@ class Board extends RelationalEntity {
|
||||
$this->acl[] = $a;
|
||||
}
|
||||
}
|
||||
|
||||
public function getETag() {
|
||||
return md5((string)$this->getLastModified());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,4 +155,8 @@ class Card extends RelationalEntity {
|
||||
public function getCalendarPrefix(): string {
|
||||
return 'card';
|
||||
}
|
||||
|
||||
public function getETag() {
|
||||
return md5((string)$this->getLastModified());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,4 +65,8 @@ class Stack extends RelationalEntity {
|
||||
public function getCalendarPrefix(): string {
|
||||
return 'stack';
|
||||
}
|
||||
|
||||
public function getETag() {
|
||||
return md5((string)$this->getLastModified());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user