1 // ==========================================================================
  2 // Project:   The M-Project - Mobile HTML5 Application Framework
  3 // Copyright: (c) 2010 M-Way Solutions GmbH. All rights reserved.
  4 //            (c) 2011 panacoda GmbH. All rights reserved.
  5 // Creator:   Sebastian
  6 // Date:      20.12.2010
  7 // License:   Dual licensed under the MIT or GPL Version 2 licenses.
  8 //            http://github.com/mwaylabs/The-M-Project/blob/master/MIT-LICENSE
  9 //            http://github.com/mwaylabs/The-M-Project/blob/master/GPL-LICENSE
 10 // ==========================================================================
 11 
 12 m_require('core/datastore/data_provider.js');
 13 
 14 /**
 15  * @class
 16  *
 17  * To be used when no data provider needed for model.
 18  * Prints warning messages when calling CRUD functions.
 19  *
 20  * @extends M.DataProvider
 21  */
 22 M.DataProviderDummy = M.DataProvider.extend(
 23 /** @scope M.DummyProvider.prototype */ {
 24 
 25     find: function() {
 26         M.Logger.log('DummyProvider does not support find().', M.WARN);
 27     },
 28 
 29     save: function() {
 30         M.Logger.log('DummyProvider does not support save().', M.WARN);
 31     },
 32 
 33     del: function() {
 34         M.Logger.log('DummyProvider does not support del().', M.WARN);
 35     }
 36 
 37 });