src/OwpCms.inc.php
static public function setModDataItem($itemName, $itemValue, $itemTitle = "")
    {
        $itemTitleFinal = (strlen($itemTitle)?$itemTitle:(isset(self::$settings_data[$itemName])?isset(self::$settings_data[$itemName]):$itemName));

        if(!self::$ezSqlDB) {
            self::loadSettings();
        }

        self::$ezSqlDB->query('BEGIN');
        self::$ezSqlDB->query(
            "
			REPLACE INTO tbl_content
			SET
				tbl_content.content_name = '".self::$ezSqlDB->escape((string)$itemName)."',
				tbl_content.content_title = '".self::$ezSqlDB->escape((string)$itemTitleFinal)."',
				tbl_content.content_value = '".self::$ezSqlDB->escape((string)$itemValue)."',
				tbl_content.content_last_updated = SYSDATE(),
				tbl_content.content_last_updated_by_userID = " . OwpUsers::userID() . "
		"
        );
        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);
        }

        return self::$settings_data[$itemName];

    }
static public function setModDataItem($itemName, $itemValue, $itemTitle = "")
    {
        $itemTitleFinal = (strlen($itemTitle)?$itemTitle:(isset(self::$settings_data[$itemName])?isset(self::$settings_data[$itemName]):$itemName));

        if(!self::$ezSqlDB) {
            self::loadSettings();
        }

        self::$ezSqlDB->query('BEGIN');
        self::$ezSqlDB->query(
            "
			REPLACE INTO tbl_content
			SET
				tbl_content.content_name = '".self::$ezSqlDB->escape((string)$itemName)."',
				tbl_content.content_title = '".self::$ezSqlDB->escape((string)$itemTitleFinal)."',
				tbl_content.content_value = '".self::$ezSqlDB->escape((string)$itemValue)."',
				tbl_content.content_last_updated = SYSDATE(),
				tbl_content.content_last_updated_by_userID = " . OwpUsers::userID() . "
		"
        );
        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);
        }

        return self::$settings_data[$itemName];

    }
setModDataItem

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

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

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