function getData($_internal, $_groups, $_visitors, $_filters, $_events = false) { if ($_internal) { loadInternals(); } if ($_groups) { loadGroups(); } if ($_visitors) { loadVisitors(); } if ($_filters) { loadFilters(); } if ($_events) { loadEvents(); } }
function initData($_fields) { global $INTERNAL, $LANGUAGES, $COUNTRIES, $FILTERS, $EVENTS, $VISITOR, $INPUTS; if ((in_array("INTERNAL", $_fields) || in_array("GROUPS", $_fields)) && empty($INTERNAL)) { loadInternals(); } if (in_array("LANGUAGES", $_fields) && empty($LANGUAGES)) { loadLanguages(); } if (in_array("COUNTRIES", $_fields) && empty($COUNTRIES)) { loadCountries(); } if (in_array("INPUTS", $_fields) && empty($INPUTS)) { DataInput::Build(); } if (in_array("FILTERS", $_fields) && empty($FILTERS)) { loadFilters(); } if (is("DB_CONNECTION")) { if (in_array("EVENTS", $_fields) && empty($EVENTS)) { loadEvents(); } if (in_array("VISITOR", $_fields) && empty($VISITOR)) { Visitor::Build(); } } }