RecentlyViewedListings.php 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ WR0lhsX7f8cF4cDCtcwojo1jd+eFo+SfDd48cSkW97iePsPkriFe27vLNLvaIS0hfcJWOFGlmVF6N4FZnp45MA==
  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.4
  11. */
  12. /**
  13. * recently viewed listings table
  14. */
  15. namespace Ppb\Db\Table;
  16. use Cube\Db\Table\AbstractTable;
  17. class RecentlyViewedListings extends AbstractTable
  18. {
  19. /**
  20. *
  21. * table name
  22. *
  23. * @var string
  24. */
  25. protected $_name = 'recently_viewed_listings';
  26. /**
  27. *
  28. * primary key
  29. *
  30. * @var string
  31. */
  32. protected $_primary = 'id';
  33. /**
  34. *
  35. * reference map
  36. *
  37. * @var array
  38. */
  39. protected $_referenceMap = array(
  40. 'Listing' => array(
  41. self::COLUMNS => 'listing_id',
  42. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Listings',
  43. self::REF_COLUMNS => 'id',
  44. ),
  45. );
  46. }