CWIS Developer Documentation

- Home
- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Events.php
Go to the documentation of this file.
1 <?PHP
2
3 # ----- HOOKABLE CWIS EVENTS
4 # (Only the events covered in the Developer Documentation have been implemented.)
5 $AF->RegisterEvent(array(
6 # --- User Events
7 "EVENT_USER_ADDED" => ApplicationFramework::EVENTTYPE_DEFAULT,
8 "EVENT_USER_VERIFIED" => ApplicationFramework::EVENTTYPE_DEFAULT,
9 "EVENT_USER_DELETED" => ApplicationFramework::EVENTTYPE_DEFAULT,
10 "EVENT_USER_LOGIN" => ApplicationFramework::EVENTTYPE_DEFAULT,
11 "EVENT_USER_LOGIN_RETURN" => ApplicationFramework::EVENTTYPE_CHAIN,
12 "EVENT_USER_LOGOUT" => ApplicationFramework::EVENTTYPE_DEFAULT,
13 "EVENT_USER_LOGOUT_RETURN" => ApplicationFramework::EVENTTYPE_CHAIN,
14 "EVENT_USER_PASSWORD_CHANGED" => ApplicationFramework::EVENTTYPE_DEFAULT,
15 "EVENT_USER_REAL_NAME_CHANGED" => ApplicationFramework::EVENTTYPE_DEFAULT,
16 "EVENT_USER_EMAIL_CHANGED" => ApplicationFramework::EVENTTYPE_DEFAULT,
17 "EVENT_USER_AUTHENTICATION" => ApplicationFramework::EVENTTYPE_FIRST,
18 "EVENT_USER_SIGNUP_VERIFY" => ApplicationFramework::EVENTTYPE_CHAIN,
19 "EVENT_USER_SIGNUP_EXTEND_ERROR_LIST" => ApplicationFramework::EVENTTYPE_CHAIN,
20 # --- Search Events
21 "EVENT_KEYWORD_SEARCH" => ApplicationFramework::EVENTTYPE_CHAIN,
22 "EVENT_FIELDED_SEARCH" => ApplicationFramework::EVENTTYPE_CHAIN,
23 "EVENT_SEARCH_RESULTS" => ApplicationFramework::EVENTTYPE_CHAIN,
24 "EVENT_SEARCH_COMPLETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
25 "EVENT_SEARCH_EXTERNAL" => ApplicationFramework::EVENTTYPE_NAMED,
26 # --- Resource Events
27 "EVENT_RESOURCE_CREATE" => ApplicationFramework::EVENTTYPE_DEFAULT,
28 "EVENT_RESOURCE_ADD" => ApplicationFramework::EVENTTYPE_DEFAULT,
29 "EVENT_RESOURCE_DELETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
30 "EVENT_RESOURCE_FILE_ADD" => ApplicationFramework::EVENTTYPE_DEFAULT,
31 "EVENT_RESOURCE_FILE_DELETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
32 "EVENT_RESOURCE_VIEW_PERMISSION_CHECK" => ApplicationFramework::EVENTTYPE_CHAIN,
33 "EVENT_RESOURCE_EDIT_PERMISSION_CHECK" => ApplicationFramework::EVENTTYPE_CHAIN,
34 # --- Metadata Field Events
35 "EVENT_PRE_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
36 "EVENT_POST_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
37 "EVENT_FIELD_DISPLAY_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
38 "EVENT_APPEND_HTML_TO_FIELD_DISPLAY" => ApplicationFramework::EVENTTYPE_CHAIN,
39 "EVENT_FIELD_VIEW_PERMISSION_CHECK" => ApplicationFramework::EVENTTYPE_CHAIN,
40 "EVENT_FIELD_AUTHOR_PERMISSION_CHECK" => ApplicationFramework::EVENTTYPE_CHAIN,
41 "EVENT_FIELD_EDIT_PERMISSION_CHECK" => ApplicationFramework::EVENTTYPE_CHAIN,
42 "EVENT_CNAME_REMAPPED" => ApplicationFramework::EVENTTYPE_DEFAULT,
43 # --- User Interface Events
44 "EVENT_IN_HTML_HEADER" => ApplicationFramework::EVENTTYPE_DEFAULT,
45 "EVENT_REQUEST_SIDEBAR_CONTENT" => ApplicationFramework::EVENTTYPE_NAMED,
46 "EVENT_COLLECTION_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
47 "EVENT_USER_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
48 "EVENT_SYSTEM_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
49 "EVENT_SYSTEM_INFO_LIST" => ApplicationFramework::EVENTTYPE_NAMED,
50 "EVENT_MODIFY_PRIMARY_NAV" => ApplicationFramework::EVENTTYPE_CHAIN,
51 "EVENT_MODIFY_SECONDARY_NAV" => ApplicationFramework::EVENTTYPE_CHAIN,
52 "EVENT_APPEND_HTML_TO_FORM" => ApplicationFramework::EVENTTYPE_CHAIN,
53 "EVENT_VALIDATE_USER_COMMENT" => ApplicationFramework::EVENTTYPE_FIRST,
54 "EVENT_URL_FIELD_CLICK" => ApplicationFramework::EVENTTYPE_DEFAULT,
55 "EVENT_FULL_RECORD_VIEW" => ApplicationFramework::EVENTTYPE_DEFAULT,
56 # --- Other Events
57 "EVENT_OAIPMH_REQUEST" => ApplicationFramework::EVENTTYPE_DEFAULT,
58 "EVENT_GET_SYSCONFIG_VALUE" => ApplicationFramework::EVENTTYPE_CHAIN,
59 "EVENT_SET_SYSCONFIG_VALUE" => ApplicationFramework::EVENTTYPE_CHAIN,
60 ));