PageRenderTime 51ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/www/app/AdminModule/components/Datagrid/IDataGridColumn.php

https://github.com/bazo/Mokuji
PHP | 58 lines | 10 code | 12 blank | 36 comment | 0 complexity | 57348c0c67d378a7e162dac429f5ed86 MD5 | raw file
Possible License(s): BSD-3-Clause, MIT
  1. <?php
  2. /**
  3. * Defines method that must be implemented to allow a component act like a data grid column.
  4. *
  5. * @author Roman Sklenář
  6. * @copyright Copyright (c) 2009 Roman Sklenář (http://romansklenar.cz)
  7. * @license New BSD License
  8. * @package Nette\Extras\DataGrid
  9. * @version $Id$
  10. */
  11. interface IDataGridColumn
  12. {
  13. /**
  14. * Is column orderable?
  15. * @return bool
  16. */
  17. function isOrderable();
  18. /**
  19. * Gets header link (order signal)
  20. * @param string
  21. * @return string
  22. */
  23. function getOrderLink($dir = NULL);
  24. /**
  25. * Has column filter box?
  26. * @return bool
  27. */
  28. function hasFilter();
  29. /**
  30. * Returns column's filter.
  31. * @return IDataGridColumnFilter|NULL
  32. */
  33. function getFilter();
  34. /**
  35. * Formats cell's content.
  36. * @param mixed
  37. * @return string
  38. */
  39. function formatContent($value);
  40. /**
  41. * Filters data source.
  42. * @param mixed
  43. * @return void
  44. */
  45. function applyFilter($value);
  46. }