content_menu_filter.php 710 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by dreizwo.de.
  4. * User: jakobs
  5. * Date: 16.08.2012
  6. * Time: 14:00:29
  7. * @author markus jakobs <jakobs@dreizwo.de>
  8. */
  9. interface content_menu_filter {
  10. /**
  11. * @abstract
  12. * @param $el the menuitem
  13. * @return true if a element should be hidden
  14. */
  15. public function hideElement($el);
  16. /**
  17. * @abstract
  18. * @param $form
  19. * @param $form_state
  20. * @param $form_id
  21. * @return add the filter widget,
  22. * to display the filter on top its recommended to add
  23. * $form['#content_menu_filter_widget'][] = 'name_of_filter_widget';
  24. * otherwise the filter will be displayed as child after the table
  25. */
  26. public function addFilterWidget(&$form, &$form_state, $form_id);
  27. }