allow registry handle "Model Events" of all table

Description

at moment. we just register handle "Model Events" one by one.
can't registry handle event for all table. I modify code for this.

when we want handle for all table use command
registerTableEvent(IEventTopics.PO_BEFORE_NEW, null);
or registerTableEvent(IEventTopics.PO_BEFORE_NEW);

Environment

None

Attachments

1

Activity

Show:

Hiep Lq April 27, 2015 at 3:02 AM

sure , thanks a lot.

Carlos Ruiz April 26, 2015 at 8:28 PM

, I think that's possible with actual code, I made a test to register delete on any table for a plugin and it worked.

Hiep Lq March 3, 2014 at 4:08 AM

I think core for raise event is not expensive. just code handle event can expensive. it rely a developer.

RedhuanO March 3, 2014 at 1:29 AM
Edited

Wouldn't this be expensive to make the code check ALL tables or ALL events?

Won't Fix

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created March 2, 2014 at 9:36 AM
Updated June 1, 2015 at 3:50 PM
Resolved April 26, 2015 at 11:28 AM