naviki.main.portlets.NewestWaysPortlet = function(config) {

	this.constructor.superclass.constructor.call(this, config); 

};

naviki.main.portlets.NewestWaysPortlet.prototype.formatTableRow = function(elCell, oRecord, oColumn, sData) {
 
	elCell.innerHTML = naviki.main.portlets.Util.formatWayRow({
			record: oRecord,
     		detailWayViewURL: oColumn.naviki_pi_portlet.config['portletcontainer'].config['detailWayViewURL']
	});
};

naviki.main.portlets.NewestWaysPortlet.prototype.initialize = function() {

	this.garbage    = false;
	this.fields     = ["number", "uid" , "title", "tstamp", "mediafileurl", "mapurl", "km"];
	this.headerName = naviki.Lang.getLL('portletsNewestWays');
	this.dburl      = this.dburl+"getNewestWays&pageid="+this.getPageID()+"&";
	naviki.main.portlets.NewestWaysPortlet.superclass.initialize.call(this);
};


