CStatistics::Keep( bool handle_call = false )
The method Keep enables collecting all the statistical data.
If the Statistics module is installed, this method is automatically called in the prologue. At the same time, you can disable automatic call of this method in the prologue by initialising the constant STOP_STATISTICS before the prologue is included. After that, this method can be called with handle_call set to true.
Parameter | Description |
---|---|
handle_call | If the value of this parameter is true, the method will ignore the constant STOP_STATISTICS and continue execution. |
<? // disable automatic collection of the statistics in the prologue define("STOP_STATISTICS", true); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); // start collecting the statistics manually CStatistics::Keep(true); ... ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |