Offers.php 1.9 KB

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