You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== bind ==
[[../../Optimizer#CUSTOM_LINK|CUSTOM_LINK]] |} === Usages ===
Binds some functionality to an event, so that when said event occurs, the event handler will fire. Returns the id of this event, so it can be unregistered later, if need be. See more on the page detailing [[Events]]. The options array can contain "id" and "priority", where priority is one of: LOWEST, LOW, NORMAL, HIGH, HIGHEST, or MONITOR. The prefilters vary from event to event.
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| bind
|-
! scope="row" | Returns
| string
|-
! scope="row" | Usages
| event_name, options, prefilter, event_obj, [custom_params], <code>
|-
! scope="row" | Throws
| [[../objects/ms.lang.BindException|ms.lang.BindException]]
|-
! scope="row" | Since
| 3.3.0
|-
! scope="row" | Restricted
| Yes
|-
! scope="row" | Optimizations
| [[../../Optimizer#OPTIMIZE_DYNAMIC|OPTIMIZE_DYNAMIC]] [[../../Optimizer#CUSTOM_LINK|CUSTOM_LINK]] |} === Usages ===
bind(event_name, options, prefilter, event_obj, [custom_params], <code>)=== Examples === Sorry, there are no examples for this function! :(
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)