Vouchers.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ 6B2zh4FpFs5fx92jXzfQMaFTXZQU34mtXyFH1P2hYic=
  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. /**
  13. * vouchers table
  14. */
  15. namespace Ppb\Db\Table;
  16. use Cube\Db\Table\AbstractTable;
  17. class Vouchers extends AbstractTable
  18. {
  19. /**
  20. *
  21. * table name
  22. *
  23. * @var string
  24. */
  25. protected $_name = 'vouchers';
  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\Voucher';
  40. /**
  41. * class name for rowset
  42. *
  43. * @var string
  44. */
  45. protected $_rowsetClass = '\Ppb\Db\Table\Rowset\Vouchers';
  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. );
  59. }