'l-visit', 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), 'EventHandlerClass' => Array('class' => 'LinkVisitEventHandler', 'file' => 'l-visit_eh.php', 'build_event' => 'OnBuild'), 'AutoLoad' => true, 'Hooks' => Array ( Array ( 'Mode' => hAFTER, 'Conditional' => false, 'HookToPrefix' => 'u', 'HookToSpecial' => '-item', // from OnMassDelete event 'HookToEvent' => Array('OnAfterItemDelete'), 'DoPrefix' => '', 'DoSpecial' => '*', 'DoEvent' => 'OnDeleteVisits', ), Array ( 'Mode' => hAFTER, 'Conditional' => false, 'HookToPrefix' => 'l', 'HookToSpecial' => '-item', // from "Catalog" 'HookToEvent' => Array('OnAfterItemDelete'), 'DoPrefix' => '', 'DoSpecial' => '*', 'DoEvent' => 'OnDeleteVisits', ), Array ( 'Mode' => hAFTER, 'Conditional' => false, 'HookToPrefix' => 'l', 'HookToSpecial' => 'showall-item', // from "Advanced View" 'HookToEvent' => Array('OnAfterItemDelete'), 'DoPrefix' => '', 'DoSpecial' => '*', 'DoEvent' => 'OnDeleteVisits', ), ), 'QueryString' => Array ( 1 => 'id', 2 => 'page', 3 => 'event', ), 'IDField' => 'VisitId', 'TableName' => TABLE_PREFIX.'LinkVisits', 'AutoDelete' => true, 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), 'ListSortings' => Array ( '' => Array( 'Sorting' => Array('VisitTimestamp' => 'desc'), ) ), 'Fields' => Array ( 'VisitId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'ResourceId' => Array ('type' => 'int', 'default' => NULL), 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'VisitTimestamp' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'not_null' => 1, 'default' => '#NOW#'), ), );