Help.php 569 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Help task to display general instructons and list all tasks
  4. *
  5. * @package KO7
  6. * @category Helpers
  7. *
  8. * @copyright (c) 2007-2016 Kohana Team
  9. * @copyright (c) since 2016 Koseven Team
  10. * @license https://koseven.dev/LICENSE
  11. */
  12. class Task_Help extends Minion_Task {
  13. /**
  14. * Generates a help list for all tasks
  15. *
  16. * @return null
  17. */
  18. protected function _execute(array $params)
  19. {
  20. $tasks = $this->_compile_task_list(KO7::list_files('classes/Task'));
  21. $view = new View('minion/help/list');
  22. $view->tasks = $tasks;
  23. echo $view;
  24. }
  25. }