Event Manager

Events are a new powerful way of assigning actions to events. For example if you would like to send an email to the site administrator when a new file is uploaded or a new page is created by another user you could add some code to those events to be executed when that event happens.

In brief here's how it works:

a) A module, or the core, can register, and then Send Events such as "newNews", or "newFronteEndUser" or "fileUploaded", "editPage", etc, etc, etc. there's some 50 events in the core at the moment, and then uploads and frontend users have been configured to send events, We still have to do selfreg, etc, etc, etc.

b) There are pages in the admin to allow you to specify which modules, and/or user tags should handle those events, and the order that each of those handlers should be called in.

c) If one of the handlers of an event is a module, then.... the modules DoEvent method is called with the name of the event, and whatever data it wants to send. Each triggered event needs to be documented, but as of this moment, most are.


Previous page: Extensions
Next page: Workflow


Time: 0.045336 / SQL: 0.00627s for 33 queries / Net Memory: 1262056 / Peak: 1684144
Debug: (0.000337) - (net usage: 35608) - (peak: 393328)
Initialize Database
Debug: (0.000901) - (net usage: 79760) - (peak: 437480)
Done Initializing Database
Debug: (0.000919) - (net usage: 79920) - (peak: 437640)
initialize internal global cache
Debug: (0.001491) - (net usage: 189152) - (peak: 558640)
done initializing global cache
Debug: (0.001508) - (net usage: 188936) - (peak: 558640)
Loading Modules
Debug: (0.002816) - (net usage: 217592) - (peak: 583480)
End of Loading Modules
Debug: (0.002905) - (net usage: 218360) - (peak: 583480)
Initialize Smarty
Debug: (0.002915) - (net usage: 218520) - (peak: 583480)
Done Initialing Smarty
Debug: (0.002961) - (net usage: 235040) - (peak: 592760)
cms_content_cache: begin load needed content objects
Debug: (0.003113) - (net usage: 235592) - (peak: 593312)
cms_content_cache: end loading needed content objects
Debug: (0.003537) - (net usage: 262592) - (peak: 620312)
SELECT * FROM cms_content WHERE content_id = 8 LIMIT  1
Debug: (0.004072) - (net usage: 273920) - (peak: 631640)
process template top
Debug: (0.004345) - (net usage: 294560) - (peak: 652280)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.005853) - (net usage: 339096) - (peak: 701384)
SELECT * FROM cms_content_props WHERE content_id = 8
Debug display of 'Start Load Smarty Plugin Search/function':(0.007401) - (net usage: 362568) - (peak: 726696)
Debug: (0.007636) - (net usage: 379944) - (peak: 737664)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.00798) - (net usage: 373208) - (peak: 737752)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.008342) - (net usage: 377632) - (peak: 737752)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.008616) - (net usage: 378360) - (peak: 737752)
Debug display of 'End Load Smarty Plugin module_available/function':(0.008637) - (net usage: 379336) - (peak: 737752)
Debug: (0.01077) - (net usage: 403928) - (peak: 774896)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (1,2,11,22) AND active = 1 ORDER BY hierarchy
Debug: (0.011208) - (net usage: 477864) - (peak: 835584)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.011429) - (net usage: 480872) - (peak: 838592)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.012662) - (net usage: 549856) - (peak: 959936)
Start Navigator breadcrumbs action
Debug: (0.012847) - (net usage: 568064) - (peak: 959936)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.013058) - (net usage: 570488) - (peak: 959936)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.013451) - (net usage: 580864) - (peak: 959936)
SELECT * FROM cms_content_props WHERE content_id = 2
Debug: (0.013804) - (net usage: 582512) - (peak: 959936)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (3,4,5,6,7,9,10) AND active = 1 ORDER BY hierarchy
Debug: (0.014138) - (net usage: 612120) - (peak: 969840)
SELECT * FROM cms_content_props WHERE content_id IN (3,4,5,6,7,9,10) ORDER BY content_id
Debug: (0.017039) - (net usage: 734728) - (peak: 1146576)
End Navigator breadcrumbs action
Debug: (0.017122) - (net usage: 720120) - (peak: 1146576)
Start Navigator default action
Debug: (0.017313) - (net usage: 739720) - (peak: 1146576)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.017862) - (net usage: 762936) - (peak: 1146576)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (12,13,14,15,16,17,18) AND active = 1 ORDER BY hierarchy
Debug: (0.018363) - (net usage: 859328) - (peak: 1217048)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (23,30) AND active = 1 ORDER BY hierarchy
Debug: (0.024036) - (net usage: 911664) - (peak: 1348648)
End Navigator default action
Debug: (0.024362) - (net usage: 934120) - (peak: 1348648)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.024584) - (net usage: 938912) - (peak: 1348648)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.024942) - (net usage: 947640) - (peak: 1348648)
            SELECT SQL_CALC_FOUND_ROWS
                mn.*,
                mnc.news_category_name,
                mnc.long_name,
                u.username,
                u.first_name,
                u.last_name
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc
            ON mnc.news_category_id = mn.news_category_id
            LEFT OUTER JOIN cms_users u
            ON u.user_id = mn.author_id
            WHERE
                status = 'published'
            AND
        IF(start_time IS NULL AND end_time IS NULL,news_date <= NOW(),NOw() BETWEEN start_time AND end_time)ORDER BY mn.news_date desc LIMIT 0, 3
Debug: (0.025051) - (net usage: 967264) - (peak: 1348648)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.025331) - (net usage: 989544) - (peak: 1348648)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.025548) - (net usage: 992016) - (peak: 1349736)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.025793) - (net usage: 1006864) - (peak: 1364584)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.026009) - (net usage: 1008648) - (peak: 1366368)
SELECT news_category_id,COUNT(news_id) AS cnt FROM cms_module_news WHERE news_category_id IN (1) AND ( IFNULL(start_time, '1970-01-01 01:00:01') < '2025-12-06 04:10:38')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2025-12-06 04:10:38'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.034507) - (net usage: 1003680) - (peak: 1512864)
Start Navigator default action
Debug: (0.03469) - (net usage: 1021616) - (peak: 1512864)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.034906) - (net usage: 1025960) - (peak: 1512864)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.035515) - (net usage: 1062064) - (peak: 1512864)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (19,20,21) AND active = 1 ORDER BY hierarchy
Debug: (0.035995) - (net usage: 1109760) - (peak: 1512864)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (25,26,27,28,29) AND active = 1 ORDER BY hierarchy
Debug: (0.036498) - (net usage: 1194848) - (peak: 1552568)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (31,32) AND active = 1 ORDER BY hierarchy
Debug: (0.042243) - (net usage: 1219408) - (peak: 1654016)
End Navigator default action
Debug: (0.042437) - (net usage: 1220880) - (peak: 1654016)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.044712) - (net usage: 1257200) - (peak: 1654016)
SELECT SQL_CALC_FOUND_ROWS S.id FROM cms_layout_stylesheets S LEFT JOIN cms_layout_design_cssassoc D ON S.id = D.css_id WHERE D.design_id = 5 ORDER BY D.item_order ASC LIMIT 0, 1000
Debug: (0.044813) - (net usage: 1274704) - (peak: 1654016)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.04508) - (net usage: 1307816) - (peak: 1665536)
SELECT id,name,content,description,media_type,media_query,created,modified FROM cms_layout_stylesheets WHERE id IN (4,10,7,1,2,3,13)