Transaction.php 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ AoT0olHJz/gPNZVhQMM9nIerNEzUAI8vfQAaUwzMeTM=
  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. * transactions table row object model
  14. */
  15. namespace Ppb\Db\Table\Row;
  16. class Transaction extends AbstractAccounting
  17. {
  18. /**
  19. *
  20. * transactions row invoice details link
  21. *
  22. * @return array
  23. */
  24. public function link()
  25. {
  26. return array(
  27. 'module' => 'members',
  28. 'controller' => 'account',
  29. 'action' => 'invoice',
  30. 'type' => 'transactions',
  31. 'id' => $this->getData('id')
  32. );
  33. }
  34. /**
  35. *
  36. * invoice details page caption
  37. *
  38. * @return string
  39. */
  40. public function caption()
  41. {
  42. return $this->getTranslate()->_('Receipt');
  43. }
  44. }