mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
PHP 8.0 Fatal error: Declaration of timesheet_tracking::get_subject($data, $old) must be compatible with Api\Storage\Tracking::get_subject($data, $old, $deleted = null, $receiver = null)
This commit is contained in:
parent
9345152c98
commit
18a92797ad
@ -80,26 +80,6 @@ class timesheet_tracking extends Api\Storage\Tracking
|
|||||||
parent::__construct('timesheet');
|
parent::__construct('timesheet');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a notification-config value
|
|
||||||
*
|
|
||||||
* @param string $name
|
|
||||||
* - 'copy' array of email addresses notifications should be copied too, can depend on $data
|
|
||||||
* - 'lang' string lang code for copy mail
|
|
||||||
* - 'sender' string send email address
|
|
||||||
* @param array $data current entry
|
|
||||||
* @param array $old =null old/last state of the entry or null for a new entry
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
function get_config($name,$data,$old=null)
|
|
||||||
{
|
|
||||||
$timesheet = $data['ts_id'];
|
|
||||||
|
|
||||||
//$config = $this->timesheet->notification[$timesheet][$name] ? $this->timesheet->notification[$timesheet][$name] : $this->$timesheet->notification[0][$name];
|
|
||||||
//no nitify configert (ToDo)
|
|
||||||
return $config;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the subject for a given entry, reimplementation for get_subject in Api\Storage\Tracking
|
* Get the subject for a given entry, reimplementation for get_subject in Api\Storage\Tracking
|
||||||
*
|
*
|
||||||
@ -107,9 +87,11 @@ class timesheet_tracking extends Api\Storage\Tracking
|
|||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @param array $old
|
* @param array $old
|
||||||
|
* @param boolean $deleted =null can be set to true to let the tracking know the item got deleted or undeleted
|
||||||
|
* @param int|string $receiver numeric account_id or email address
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_subject($data,$old)
|
protected function get_subject($data,$old,$deleted=null,$receiver=null)
|
||||||
{
|
{
|
||||||
return '#'.$data['ts_id'].' - '.$data['ts_title'];
|
return '#'.$data['ts_id'].' - '.$data['ts_title'];
|
||||||
}
|
}
|
||||||
@ -119,9 +101,10 @@ class timesheet_tracking extends Api\Storage\Tracking
|
|||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @param array $old
|
* @param array $old
|
||||||
|
* @param int|string $receiver nummeric account_id or email address
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_message($data,$old)
|
protected function get_message($data,$old,$receiver=null)
|
||||||
{
|
{
|
||||||
if (!$data['ts_modified'] || !$old)
|
if (!$data['ts_modified'] || !$old)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user