Bitrix Site Manager

CStatEvent::GetHandlerList

array
CStatEvent::GetHandlerList(
 array &handlers
)

The method GetHandlerList returns a list of CSV file handlers for displaying in the drop-down list using SelectBoxFromArray, or in the multiple selection list using SelectBoxMFromArray.

The CSV file handlers can be custom (their path is specified in the parameter Path to additional handlers for manual event loading in the Statistics module settings), as well as standard (shipped with the module distribution package, located in /bitrix/modules/statistic/loading/).

Parameters

Parameter Description
handlers When the method returns, this variable contains an array of paths (relative to the root) to the custom handlers.

Example of the array:
Array
(
    [0] => /bitrix/php_interface/include/statistic/regnow_alawar.php
    [1] => /bitrix/php_interface/include/statistic/regnow_editable.php
    [2] => /bitrix/php_interface/include/statistic/regsoft_editable.php
    [3] => /bitrix/php_interface/include/statistic/shareit_editable.php
    [4] => /bitrix/php_interface/include/statistic/softkey_editable.php
)

Return Values

The following is the example of the returned array:

Array
(
    [reference] => Array
        (
            [0] => regnow.php
            [1] => regsoft.php
            [2] => shareit_eur.php
            [3] => shareit_usd.php
            [4] => softkey.php
            [5] => [1] regnow_alawar.php
            [6] => [2] regnow_editable.php
            [7] => [3] regsoft_editable.php
            [8] => [4] shareit_editable.php
            [9] => [5] softkey_editable.php
        )

    [reference_id] => Array
        (
            [0] => /bitrix/modules/statistic/loading/regnow.php
            [1] => /bitrix/modules/statistic/loading/regsoft.php
            [2] => /bitrix/modules/statistic/loading/shareit_eur.php
            [3] => /bitrix/modules/statistic/loading/shareit_usd.php
            [4] => /bitrix/modules/statistic/loading/softkey.php
            [5] => /bitrix/php_interface/include/statistic/regnow_alawar.php
            [6] => /bitrix/php_interface/include/statistic/regnow_editable.php
            [7] => /bitrix/php_interface/include/statistic/regsoft_editable.php
            [8] => /bitrix/php_interface/include/statistic/shareit_editable.php
            [9] => /bitrix/php_interface/include/statistic/softkey_editable.php
        )

)

See Also

Example



<?
// obtain the list of available handlers
$arrHandlers = CStatEvent::GetHandlerList($arUSER_HANDLERS);

// display the list in the combo box
echo SelectBoxFromArray("handler", $arrHandlers, $handler, " ");
?>