Messaging.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ +UjQ0FR18P5+7L/CT5xJw6MQq0IH5RQawawSM7oSu5g=
  5. *
  6. * @link http://www.phpprobid.com
  7. * @copyright Copyright (c) 2014 Online Ventures Software LTD & CodeCube SRL
  8. * @license http://www.phpprobid.com/license Commercial License
  9. *
  10. * @version 7.0
  11. */
  12. namespace Ppb\Db\Table;
  13. use Cube\Db\Table\AbstractTable;
  14. class Messaging extends AbstractTable
  15. {
  16. /**
  17. *
  18. * table name
  19. *
  20. * @var string
  21. */
  22. protected $_name = 'messaging';
  23. /**
  24. *
  25. * primary key
  26. *
  27. * @var string
  28. */
  29. protected $_primary = 'id';
  30. /**
  31. *
  32. * class name for row
  33. *
  34. * @var string
  35. */
  36. protected $_rowClass = '\Ppb\Db\Table\Row\Message';
  37. /**
  38. * class name for rowset
  39. *
  40. * @var string
  41. */
  42. protected $_rowsetClass = '\Ppb\Db\Table\Rowset\Messages';
  43. /**
  44. *
  45. * reference map
  46. *
  47. * @var array
  48. */
  49. protected $_referenceMap = array(
  50. 'Topic' => array(
  51. self::COLUMNS => 'topic_id',
  52. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Messaging',
  53. self::REF_COLUMNS => 'topic_id',
  54. ),
  55. 'Sender' => array(
  56. self::COLUMNS => 'sender_id',
  57. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  58. self::REF_COLUMNS => 'id',
  59. ),
  60. 'Receiver' => array(
  61. self::COLUMNS => 'receiver_id',
  62. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  63. self::REF_COLUMNS => 'id',
  64. ),
  65. 'Listing' => array(
  66. self::COLUMNS => 'listing_id',
  67. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Listings',
  68. self::REF_COLUMNS => 'id',
  69. ),
  70. 'Sale' => array(
  71. self::COLUMNS => 'sale_id',
  72. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Sales',
  73. self::REF_COLUMNS => 'id',
  74. ),
  75. );
  76. /**
  77. *
  78. * dependent tables
  79. *
  80. * @var array
  81. */
  82. protected $_dependentTables = array(
  83. '\Ppb\Db\Table\Messaging',
  84. '\Ppb\Db\Table\Sales',
  85. );
  86. }