Sha256: 595f2b90a8841c2557382defe7f227f190f79af2631cf5de2d5b0b02559e3511

Contents?: true

Size: 1.88 KB

Versions: 49

Compression:

Stored size: 1.88 KB

Contents

// ==========================================================================
// Project:   <%= namespace_class_name %>
// Copyright: ©<%= Time.now.year %> My Company, Inc.
// ==========================================================================
/*globals <%= namespace %> */

/** @class

  (Document Your Data Source Here)

  @extends <%= base_class_name || 'SC.DataSource' %>
*/
<%= namespace_class_name %> = <%= base_class_name || 'SC.DataSource' %>.extend(
/** @scope <%= namespace_class_name %>.prototype */ {

  // ..........................................................
  // QUERY SUPPORT
  // 

  fetch: function(store, query) {

    // TODO: Add handlers to fetch data for specific queries.  
    // call store.dataSourceDidFetchQuery(query) when done.

    return NO ; // return YES if you handled the query
  },

  // ..........................................................
  // RECORD SUPPORT
  // 
  
  retrieveRecord: function(store, storeKey) {
    
    // TODO: Add handlers to retrieve an individual record's contents
    // call store.dataSourceDidComplete(storeKey) when done.
    
    return NO ; // return YES if you handled the storeKey
  },
  
  createRecord: function(store, storeKey) {
    
    // TODO: Add handlers to submit new records to the data source.
    // call store.dataSourceDidComplete(storeKey) when done.
    
    return NO ; // return YES if you handled the storeKey
  },
  
  updateRecord: function(store, storeKey) {
    
    // TODO: Add handlers to submit modified record to the data source
    // call store.dataSourceDidComplete(storeKey) when done.

    return NO ; // return YES if you handled the storeKey
  },
  
  destroyRecord: function(store, storeKey) {
    
    // TODO: Add handlers to destroy records on the data source.
    // call store.dataSourceDidDestroy(storeKey) when done
    
    return NO ; // return YES if you handled the storeKey
  }
  
}) ;

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
sproutcore-1.6.0.beta.3-x86-mingw32 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.3-java lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.3 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.2-java lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.2 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.6.0.beta.1 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0-java lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.rc.2 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.rc.1 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.pre.5 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.pre.4.1 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.pre.4 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.5.0.pre.3 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.4.5 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.4.5-java lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.4.4-java lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.4.4 lib/gen/data-source/templates/data_sources/@filename@.js
sproutcore-1.4.3.1 lib/gen/data-source/templates/data_sources/@filename@.js