public function __construct() { if (!isset($_SESSION[$GLOBALS['app_id']]['pk'])) { // start fake pks at 1020, after the hard-coded getData() events $_SESSION[$GLOBALS['app_id']]['pk'] = 1020; // populate $_SESSION with default data $_SESSION[$GLOBALS['app_id']]['rs'] = TestData::getEvents(); } }