Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function addData(array $result): array |
||
23 | { |
||
24 | if ($result['tableName'] !== 'tx_sfeventmgt_domain_model_event') { |
||
25 | return $result; |
||
26 | } |
||
27 | |||
28 | if ($result['command'] === 'new') { |
||
29 | $result['databaseRow']['startdate'] = $GLOBALS['EXEC_TIME']; |
||
30 | $result['databaseRow']['enddate'] = $GLOBALS['EXEC_TIME'] + 3600; |
||
31 | } |
||
32 | |||
33 | return $result; |
||
34 | } |
||
36 |