SalesListings.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ v+Yq3FVLV7w/XjjKm9CxccWTfneLD6nC9ap970xoQEo=
  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 SalesListings extends AbstractTable
  15. {
  16. /**
  17. *
  18. * table name
  19. *
  20. * @var string
  21. */
  22. protected $_name = 'sales_listings';
  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\SaleListing';
  37. /**
  38. * class name for rowset
  39. *
  40. * @var string
  41. */
  42. protected $_rowsetClass = '\Ppb\Db\Table\Rowset\SalesListings';
  43. /**
  44. *
  45. * reference map
  46. *
  47. * @var array
  48. */
  49. protected $_referenceMap = array(
  50. 'Listing' => array(
  51. self::COLUMNS => 'listing_id',
  52. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Listings',
  53. self::REF_COLUMNS => 'id',
  54. ),
  55. 'Sale' => array(
  56. self::COLUMNS => 'sale_id',
  57. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Sales',
  58. self::REF_COLUMNS => 'id',
  59. ),
  60. );
  61. }