platform/plugins/Streams/classes/Streams/SubscriptionRule.js - Q Platform
Show:

File: platform/plugins/Streams/classes/Streams/SubscriptionRule.js

  1. /**
  2. * Class representing subscription_rule rows.
  3. *
  4. * This description should be revised and expanded.
  5. *
  6. * @module Streams
  7. */
  8. var Q = require('Q');
  9. var Db = Q.require('Db');
  10. var SubscriptionRule = Q.require('Base/Streams/SubscriptionRule');
  11.  
  12. /**
  13. * Class representing 'SubscriptionRule' rows in the 'Streams' database
  14. * <br>rules applied on the user's side for notifications coming in
  15. * @namespace Streams
  16. * @class SubscriptionRule
  17. * @extends Base.Streams.SubscriptionRule
  18. * @constructor
  19. * @param {Object} fields The fields values to initialize table row as
  20. * an associative array of {column: value} pairs
  21. */
  22. function Streams_SubscriptionRule (fields) {
  23.  
  24. // Run mixed-in constructors
  25. Streams_SubscriptionRule.constructors.apply(this, arguments);
  26. /*
  27. * Add any privileged methods to the model class here.
  28. * Public methods should probably be added further below.
  29. */
  30. }
  31.  
  32. Q.mixin(Streams_SubscriptionRule, SubscriptionRule);
  33.  
  34. /*
  35. * Add any public methods here by assigning them to Streams_SubscriptionRule.prototype
  36. */
  37.  
  38. /**
  39. * The setUp() method is called the first time
  40. * an object of this class is constructed.
  41. * @method setUp
  42. */
  43. Streams_SubscriptionRule.prototype.setUp = function () {
  44. // put any code here
  45. // overrides the Base class
  46. };
  47.  
  48. module.exports = Streams_SubscriptionRule;