src/OwpSettings.inc.php
static public function setModDataItem($itemName, $itemValue)
    {
        self::$ezSqlDB->query('BEGIN');
        self::$ezSqlDB->query(
            "
			REPLACE INTO tbl_settings
			SET
				tbl_settings.setting_name = '".self::$ezSqlDB->escape($itemName)."',
				tbl_settings.setting_value = '".self::$ezSqlDB->escape(json_encode($itemValue))."',
				tbl_settings.setting_last_updated = SYSDATE(),
				tbl_settings.setting_last_updated_by_userID = 0
		"
        );
        if (self::$ezSqlDB->query('COMMIT') !== false) {
            self::loadSettings();
        } else {
            self::$ezSqlDB->query('ROLLBACK');
            throw new Exception("SQL error while attempting to update ".$itemName.": ".self::$ezSqlDB->last_error);
        }

    }
static public function setModDataItem($itemName, $itemValue)
    {
        self::$ezSqlDB->query('BEGIN');
        self::$ezSqlDB->query(
            "
			REPLACE INTO tbl_settings
			SET
				tbl_settings.setting_name = '".self::$ezSqlDB->escape($itemName)."',
				tbl_settings.setting_value = '".self::$ezSqlDB->escape(json_encode($itemValue))."',
				tbl_settings.setting_last_updated = SYSDATE(),
				tbl_settings.setting_last_updated_by_userID = 0
		"
        );
        if (self::$ezSqlDB->query('COMMIT') !== false) {
            self::loadSettings();
        } else {
            self::$ezSqlDB->query('ROLLBACK');
            throw new Exception("SQL error while attempting to update ".$itemName.": ".self::$ezSqlDB->last_error);
        }

    }
setModDataItem

@method mixed setModDataItem($itemName, $itemValue) Add mod data by key
@access public

@param  string $itemName  Mod data array key
@param  mixed  $itemValue Mod data value
@throws Exception SQL exception

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0