'CHistoryManager', 'httptest' => 'CHttpTestManager' ]); } return self::$instance; } /** * @return CHistoryManager */ public static function History() { static $instance; if ($instance === null) { $instance = self::getInstance()->getObject('history'); $dbversion_status = CSettingsHelper::getDbVersionStatus(); foreach ($dbversion_status as $dbversion) { if (array_key_exists('history_pk', $dbversion)) { if ($dbversion['history_pk'] == 1) { $instance->setPrimaryKeysEnabled(); } break; } } } return $instance; } /** * @return CHttpTestManager */ public static function HttpTest() { return self::getInstance()->getObject('httptest'); } }