bool CFormResult::SetEvent( int result_id, string event1 = false, string event2 = false, string event3 = false, mixed money = "", mixed currency = "", mixed goto = "", mixed chargeback = "N" )
The method SetEvent Создает событие в модуле "Статистика". Возвращает "true" в случае успеха, or false otherwise.
Parameter | Description |
---|---|
result_id | The ID of the result. |
event1 | The event type identifier - event1. Optional. "false" by default (which means "form"). |
event2 | The event type identifier - event2. Optional. "false" by default (which means the symbolic identifier of the web form). |
event3 | The event type identifier - event3. Optional. "false" by default (which means link to the administrative page for viewing the result result_id). |
money | The event amount of money. Optional. Default is "". |
currency | Three character currency identifier of money. Optional. Default is "". |
chargeback | Setting this parameter to "Y" causes the amount of money to
be registered as the negative value in the Statistics
module. Optional. Default is "". |
<? $RESULT_ID = 189; // ID результата // создадим событие в модуле "Статистика" if (CFormResult::SetEvent($RESULT_ID)) { echo "Событие успешно создано."; } else // ошибка { global $strError; echo $strError; } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |