Bitrix Site Manager

Events

This section outlines the Kernel module events. To register an event handler, pass "main" as the module identifier.

  • Page execution events
  • User and authorization events
  • User group events
  • Files and permissions events
  • e-mail templates events
  • Sites events
  • Language events
  • Control toolbar events
  • See Also

    Page execution events

    Event Description
    OnPageStart Fires at the start of the executable section of the site prologue after the inclusion of all libraries and running all agents.
    OnBeforeProlog Fires in the executable section of a site prologue (after OnPageStart).
    OnEpilog Fires at the end of processing the visual aspect of the site epilogue.
    OnProlog Fires at the beginning of processing the visual aspect of the site prologue.
    OnAfterEpilog Fires at the end of the executable section of a site epilogue (after OnEpilog).

    See Also

    User and authorization events

    Event Description
    OnBeforeUserRegister Fires before an attempt of a new user registration by calling the method CUser::Register.
    OnAfterUserRegister Fires after an attempt of a new user registration by calling the method CUser::Register.
    OnBeforeUserSimpleRegister Fires before an attempt of user simplified registration performed by CUser::SimpleRegister.
    OnAfterUserSimpleRegister Fires after an attempt of user simplified registration performed by CUser::SimpleRegister.
    OnBeforeUserLogin Fired in the method CUser::Login before a user authorization attempt.
    OnUserLoginExternal Used to check user login and password in an external authorization source.
    OnAfterUserLogin Called from the method CUser::Login after a user authorization attempt.
    OnBeforeUserLoginByHash Fires in the method CUser::LoginByHash() before the authorization attempt.
    OnAfterUserLoginByHash Called from the method CUser::LoginByHash() after the verification of login, after the authorization attempt.
    OnAfterUserAuthorize Called from the CUser::Authorize method after a user authorization.
    OnBeforeUserLogout Fires before the user authorization completes from within the method CUser::Logout.
    OnAfterUserLogout Fires after the user authorization completes.
    OnBeforeUserAdd Fires before a new user is added.
    OnAfterUserAdd Fires after a new user is added.
    OnBeforeUserUpdate Fires before the user parameters become modified.
    OnAfterUserUpdate Fires after the user parameters become modified.
    OnBeforeUserDelete Fires before a user is deleted.
    OnUserDelete Fires at the time of a user deletion.
    OnExternalAuthList Called to obtain a list of external authorization sources .

    See Also

    User group events

    Event Description
    OnBeforeGroupDelete Fires before the user group deletion.
    OnGroupDelete Fired when a user group is deleted.

    Files and permissions events

    Event Description
    OnChangeFile Fired right after a file is saved by a call to method SaveFileContent.
    OnChangePermissions Fires when the file or folder access permission is modified by a call to SetFileAccessPermission.

    e-mail templates events

    Event Description
    OnBeforeEventMessageDelete Fires before the mail template is deleted.
    OnEventMessageDelete Fires at the time of deleting a mail template.

    Sites events

    Event Description
    OnBeforeSiteDelete Fires before the site is deleted.
    OnSiteDelete Fires when a site is deleted.

    Language events

    Event Description
    OnBeforeLanguageDelete Fires before the language deletion.
    OnLanguageDelete Fires when a language is deleted.

    Control toolbar events

    Event Description
    OnPanelCreate Called when the system collects information for building the control toolbar in the public section of the site.

    See Also