N°2847 Fix hardcoded values for Activity New Entry object

This commit is contained in:
Stephen Abello
2020-10-07 17:00:47 +02:00
parent 6a87ce48e1
commit 6cbc7fdb20
3 changed files with 19 additions and 3 deletions

View File

@@ -118,6 +118,22 @@ class ActivityPanel extends UIBlock
{
return $this->oObject;
}
/**
* Return the object id for which the activity panel is for
*
* @return int
*/
public function GetObjectId(): int {
return $this->oObject->GetKey();
}
/**
* Return the object class for which the activity panel is for
*
* @return string
*/
public function GetObjectClass(): string {
return get_class($this->oObject);
}
/**
* Set all entries at once.