/**
 * file User.js with user class
 * @author Janusz Rygał
 * @date 16.09.2008
 */

/**
 * @class History is using to save events in the history
 * History class
 */
History = function(){

	/**history connection object*/
	this.conn;
	
	/**
	 * method to add history items
	 * @param action_ id of the action
	 * @param module_ id of the module
	 */
	 this.addItem  = function(action_, module_){
	 		    this.conn = new Ext.data.Connection({
								url: project_url+'addHistoryItem?act='+action_+'&mod='+module_
							});
		   		this.conn.request({
								method: 'GET',
							    success: function(responseObject) {
							    		 },
							    failure: function() {
							         			Ext.Msg.alert('Warning', 'Some problems occured while addding history item!');
							     		 }
				    });	
	 }
}