public static function updateExtraData($id, $key, $value)
{
$db = self::getContainer()->get('database');
$data = (string) $db->getVar('SELECT i.data
FROM modules_extras AS i
WHERE i.id = ?', array((int) $id));
$data = unserialize($data);
$data[(string) $key] = (string) $value;
$db->update('modules_extras', array('data' => serialize($data)), 'id = ?', array((int) $id));
}