search_processor.class.php 628 B

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