Events
Event | is Called | Method | Available from version |
---|---|---|---|
OnAfterVoteAnswerDelete ($ID, $QUESTION_ID, $VOTE_ID); | after answer is deleted. | CVoteAnswer::Delete | 8.5.0 |
OnAfterVoteQuestionDelete ($ID, $VOTE_ID); | after question is deleted. | CVoteQuestion::Delete | 8.5.0 |
OnBeforeVoteAnswerDelete (&$ID, &$QUESTION_ID, &$VOTE_ID); | before answer is deleted. To cancel deletion, return false. | CVoteAnswer::Delete | 8.5.0 |
OnBeforeVoteQuestionDelete (&$ID, &$VOTE_ID); | before question is deleted. To cancel deletion, return false. | CVoteQuestion::Delete | 8.5.0 |
onAfterVoteAdd ($ID, $arFields); | after poll is added. | CVote::Add | 8.5.0 |
onAfterVoteAnswerAdd ($ID, $arFields); | after answer is added. | CVoteAnswer::Add | 8.5.0 |
onAfterVoteAnswerUpdate ($ID, $arFields); | after answer is changed. | CVoteAnswer::Update | 8.5.0 |
onAfterVoteChannelAdd | after poll group is created. | CVoteChannel::Add | 12.0.5 |
onAfterVoteChannelDelete | after poll group is deleted. | CVoteChannel::Delete | 12.0.5 |
onAfterVoteChannelUpdate | after poll group is changed. | CVoteChannel::Update | 12.0.5 |
onAfterVoteDelete | after poll is deleted. | CVote::Delete | 12.0.5 |
onAfterVoting | after voting procedure is successful. | CVote::KeepVoting | 12.0.5 |
onBeforeVoting | before voting procedure is registered. | CVote::KeepVoting | 12.0.5 |
onVoteReset | when all votes an poll data is reset. | CVote::Reset | 12.0.5 |
onBeforeVoteChannelAdd | before poll group is added. | CVoteChannel::Add | 12.0.5 |
onBeforeVoteChannelDelete | before poll group is deleted. | CVoteChannel::Delete | 12.0.5 |
onBeforeVoteChannelUpdate | before poll group is changed. | CVoteChannel::Update | 12.0.5 |
onBeforeVoteDelete | before poll is deleted. | CVote::Delete | 12.0.5 |
onAfterVoteQuestionAdd ($ID, $arFields); | after question is added. | CVoteQuestion::Add | 8.5.0 |
onAfterVoteQuestionUpdate ($ID, $arFields); | after question is changed. | CVoteQuestion::Update | 8.5.0 |
onAfterVoteUpdate ($ID, &$arFields); | after poll is changed. | CVote::Update | 8.5.0 |
onBeforeVoteAdd (&$arFields); | before poll is added. To cancel the addition, set empty value to $arFields. | CVote::Add | 8.5.0 |
onBeforeVoteAnswerAdd (&$arFields); | before answer is added. To cancel the addition, set empty value to $arFields. | CVoteAnswer::Add | 8.5.0 |
onBeforeVoteAnswerUpdate (&$arFields); | before answer is changed. To cancel the update, set empty value to $arFields. | CVoteAnswer::Update | 8.5.0 |
onBeforeVoteQuestionAdd (&$arFields); | before question is added. To cancel the addition, set empty value to $arFields. | CVoteQuestion::Add | 8.5.0 |
onBeforeVoteQuestionUpdate (&$arFields); | before question is changed. To cancel the update, set empty value to $arFields. | CVoteQuestion::Update | 8.5.0 |
onBeforeVoteUpdate (&$arFields); | before poll is changed. To cancel the update, set empty value to $arFields. | CVote::Update | 8.5.0 |
onAfterVoting | upon each successful voting.
$events = GetModuleEvents("vote", "onAfterVoting"); while ($arEvent = $events->Fetch()) ExecuteModuleEventEx($arEvent, array($VOTE_ID, $EVENT_ID)); | CVote::KeepVoting | 12.0.5 |
© «Bitrix24», 2001-2024