NewslettersRecipients.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ c3gtR0nZ87MEpolQ3ib5mkAKmhQEwBc4BWpzQOhDnuF/zdvoA4ImlSkW8rjG9fJOwSmRzljRHHkuTlsdfwkkdA==
  5. *
  6. * @link http://www.phpprobid.com
  7. * @copyright Copyright (c) 2017 Online Ventures Software & CodeCube SRL
  8. * @license http://www.phpprobid.com/license Commercial License
  9. *
  10. * @version 7.9 [rev.7.9.01]
  11. */
  12. /**
  13. * newsletters recipients table
  14. */
  15. namespace Ppb\Db\Table;
  16. use Cube\Db\Table\AbstractTable;
  17. class NewslettersRecipients extends AbstractTable
  18. {
  19. /**
  20. *
  21. * table name
  22. *
  23. * @var string
  24. */
  25. protected $_name = 'newsletters_recipients';
  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. 'User' => array(
  41. self::COLUMNS => 'user_id',
  42. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  43. self::REF_COLUMNS => 'id',
  44. ),
  45. 'Subscriber' => array(
  46. self::COLUMNS => 'subscriber_id',
  47. self::REF_TABLE_CLASS => '\Ppb\Db\Table\NewslettersSubscribers',
  48. self::REF_COLUMNS => 'id',
  49. ),
  50. 'Newsletter' => array(
  51. self::COLUMNS => 'newsletter_id',
  52. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Newsletters',
  53. self::REF_COLUMNS => 'id',
  54. ),
  55. );
  56. }