-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollectOjsStat.php
More file actions
28 lines (21 loc) · 1.28 KB
/
collectOjsStat.php
File metadata and controls
28 lines (21 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
////////////////////// Step 0 - Initialize /////////////////////////////////////////////////////////////////
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
require_once(__DIR__ . "/constants.php");
require_once(__DIR__ . "/functions.php");
////////////////////// Step 1 - START /////////////////// //////////////////////////////////////////////////
$executionStartTime = microtime(true);
echoLog("Starting statistics for OJS");
////////////////////// Step 2 - Retrieve journal list //////////////////////////////////////////////////////
$jList = getJournalList();
////////////////////// Step 3 - Save submissions statistics per Journal ////////////////////////////////////
echoLog("Collecting views");
$statList = getStat($jList);
////////////////////// Step 4 - Produce RetrievedData //////////////////////////////////////////////////////
echoLog("Collecting geographical provenance");
$statList = produceRetrievedData($jList);
////////////////////// Step 5 - Wrap up ////////////////////////////////////////////////////////////////////
$seconds = microtime(true) - $executionStartTime;
echoLog ("This script took ".number_format($seconds,3,',','.')." seconds to execute.");
echoLog ("That's all folks"); exit(0);
?>