UsersAddressBook.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ XubaWWqi8sJjRoa6EkQ1vqsujJyOFyvZAZsIfKglcVA=
  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 UsersAddressBook extends AbstractTable
  15. {
  16. /**
  17. *
  18. * table name
  19. *
  20. * @var string
  21. */
  22. protected $_name = 'users_address_book';
  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\UserAddressBook';
  37. /**
  38. * class name for rowset
  39. *
  40. * @var string
  41. */
  42. protected $_rowsetClass = '\Ppb\Db\Table\Rowset\UsersAddressBook';
  43. /**
  44. *
  45. * reference map
  46. *
  47. * @var array
  48. */
  49. protected $_referenceMap = array(
  50. 'User' => array(
  51. self::COLUMNS => 'user_id',
  52. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  53. self::REF_COLUMNS => 'id',
  54. ),
  55. );
  56. /**
  57. *
  58. * dependent tables
  59. *
  60. * @var array
  61. */
  62. protected $_dependentTables = array(
  63. '\Ppb\Db\Table\Sales',
  64. );
  65. }