search_processor.class.php 748 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.include.search
  5. */
  6. /**
  7. * Base class to make tool processors
  8. *
  9. * This processor have to prepare the raw data from the search engine api to
  10. * make it usable by search. See some implementations of these classes if you
  11. * want to make one.
  12. *
  13. * Classes that extends this one should be named like: TOOL_<toolname> on
  14. * TOOL_<toolname>.class.php
  15. * See lp_list_search for an example of calling the process.
  16. * @package chamilo.include.search
  17. */
  18. abstract class search_processor {
  19. /**
  20. * Search engine api results
  21. */
  22. protected $rows = array();
  23. /**
  24. * Process the data sorted by the constructor
  25. */
  26. abstract protected function process();
  27. }