//设置数据
$data = new stdClass;
$data->id = 19;
$data->description = '这是一个保存数据测试';
$data->params = new stdClass;
$data->params->tag_link_class = 'tagclass';
//引入table
$table = JTable::getInstance('Tag','TagsTable');
//加载数据
$table->load(array('id' => $data->id));
//设置数据
$table->set('description',$data->description);
//对json数据进行设置
$registry = new Registry;
$params = $registry->loadString($table->params,'JSON');
$params->set('tag_link_class',$data->params->tag_link_class);
$table->set('params',(string )$params);
//保存数据
$table->store();