string CStatEvent::GetGID( mixed site_id = false )
The method GetGID returns the special parameter used for creating events with functions CStatEvent::Add, CStatEvent::AddByEvents.
The special parameter is created using the following parameters of the current visitor:
Parameter | Description |
---|---|
site_id | The site ID. |
<? // the page to which the visitor will be redirected // after the event is registered. // e.g. payment system or registration service provider $goto = "http://www.softkey.ru/catalog/basket.php?prodid=902&" "quantity=1&referer1=ritlabs_site&referer2=#EVENT_GID#"; // register event $goto = eregi_replace("#EVENT_GID#", urlencode(CStatEvent::GetGID()), $goto); CStatEvent::AddCurrent("softkey", "out", "", "", "", $goto); // redirect visitor LocalRedirect($goto); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |