10 echo
$process->run(
"/action/activity_tracker/migrate_data");
14 echo
"Executing migration script";
18 $process->setProgress(
"Running",
"Materializing Session Records", 5);
20 $db = ConnectionManager::getConnection();
21 $db->exec(
"INSERT INTO user_activity_session (session_identifier, user_id, session_start, session_end, request_count) select session_id, user_id, session_start, session_end, page_views from activity_sessions");
23 $process->setProgress(
"Running",
"Retrieving Session summaries", 10);
32 $process->setProgress(
"Running",
"Migrating $count of $max", number_format(10 + (
$count * 90 /
$max), 1));
33 ActivityTracker::migrateData($session);
37 $process->setProgress(
"Completed",
"All done!", 100);
41 $process->setProgress(
"Error", $e->getMessage(), 100);
static using()
Import the datamodels, views and manifest for the specified component(s).
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
Provides a central management class for event handlers and common functionality for the process compo...