platform/plugins/Streams/classes/Streams/RelatedToTotal.php - Q Platform
Show:

File: platform/plugins/Streams/classes/Streams/RelatedToTotal.php

  1. <?php
  2. /**
  3. * @module Streams
  4. */
  5. /**
  6. * Class representing 'RelatedToTotal' rows in the 'Streams' database
  7. * You can create an object of this class either to
  8. * access its non-static methods, or to actually
  9. * represent a related_to_total row in the Streams database.
  10. *
  11. * @class Streams_RelatedToTotal
  12. * @extends Base_Streams_RelatedToTotal
  13. */
  14. class Streams_RelatedToTotal extends Base_Streams_RelatedToTotal
  15. {
  16. /**
  17. * The setUp() method is called the first time
  18. * an object of this class is constructed.
  19. * @method setUp
  20. */
  21. function setUp()
  22. {
  23. parent::setUp();
  24. // INSERT YOUR CODE HERE
  25. // e.g. $this->hasMany(...) and stuff like that.
  26. }
  27.  
  28. /*
  29. * Add any Streams_RelatedToTotal methods here, whether public or not
  30. */
  31. /**
  32. * Implements the __set_state method, so it can work with
  33. * with var_export and be re-imported successfully.
  34. * @method __set_state
  35. * @static
  36. * @param {array} $array
  37. * @return {Streams_RelatedToTotal} Class instance
  38. */
  39. static function __set_state(array $array) {
  40. $result = new Streams_RelatedToTotal();
  41. foreach($array as $k => $v)
  42. $result->$k = $v;
  43. return $result;
  44. }
  45. };