Merge record and structure events inside new namespace

This commit is contained in:
Mathieu Darse
2015-01-27 18:58:09 +01:00
parent bc61536a41
commit e287ba1a42
45 changed files with 172 additions and 177 deletions

View File

@@ -257,6 +257,8 @@ class databox_status
unset(self::$_status[$databox->get_sbas_id()]->status[$bit]);
$app['dispatcher']->dispatch(RecordStructureEvents::STATUS_BIT_DELETED, new StatusBitDeletedEvent($databox, $bit));
return true;
}
}
@@ -348,6 +350,9 @@ class databox_status
if ( ! isset(self::$_status[$sbas_id]->status[$bit]['img_off'])) {
self::$_status[$sbas_id]->status[$bit]['img_off'] = null;
}
$properties = self::$_status[$sbas_id]->status[$bit];
$app['dispatcher']->dispatch(RecordStructureEvents::STATUS_BIT_UPDATED, new StatusBitUpdatedEvent($databox, $bit, $properties));
}
return false;