something like this ...
var Stations = {};
var Vehicles = {};
var Activities = new Class({
Implements: [Options],
'options' : {
'startDate' : null,
'endDate' : null,
'station' : null,
'vehicles' : []
},
initialize: function( options )
{
this.setOptions(options);
},
getOptions: function()
{
return JSON.encode( this.options );
},
getOpt: function( optKey )
{
return this.options[optKey];
},
setOpt: function( optKey, optValue )
{
this.options[optKey] = optValue;
return this;
},
});