int CStatEventType::ConditionSet( string event1, string event2, array &type )
The method ConditionSet returns the event type by the specified identifiers, or creates a new one if no such event type exists.
Parameter | Description |
---|---|
event1 | The event1 event type identifier. |
event2 | The event2 event type identifier. |
type | Reference to an array describing the event type. The array has the
following format:Array ( [TYPE_ID] => the event type ID [DYNAMIC_KEEP_DAYS] => days to keep statistical information on this event type, on daily basis [KEEP_DAYS] => days to keep events of this type [DATE_ENTER_STR] => the date the event was created ) |
Returns the ID of the existing or new event.
<? // obtain the ID of the event type "softkey/order" // or create a new one $TYPE_ID = CStatEventType::ConditionSet("softkey", "order", $arEventType); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |