Members.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ DNY0uzPty4QZ4uyGnzu35p89YghVyf7AXXOUV9Og8FU=
  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. * members module specific categories table service class
  14. */
  15. namespace Ppb\Service\Table\Relational\Categories;
  16. use Ppb\Service\Table\Relational\Categories;
  17. class Members extends Categories
  18. {
  19. /**
  20. *
  21. * fields to remove from the parent table form
  22. *
  23. * @var array
  24. */
  25. private $_skipFields = array('custom_fees', 'adult');
  26. /**
  27. *
  28. * get all table columns needed to generate the
  29. * categories management table in the admin area
  30. *
  31. * @return array
  32. */
  33. public function getColumns()
  34. {
  35. $columns = parent::getColumns();
  36. foreach ($columns as $key => $column) {
  37. if (in_array($column['element_id'], $this->_skipFields)) {
  38. unset($columns[$key]);
  39. }
  40. }
  41. return $columns;
  42. }
  43. }