search_course_plugin.class.php 643 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Description of SearchCoursePlugin.
  4. *
  5. * @copyright (c) 2012 University of Geneva
  6. * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
  7. * @author Laurent Opprecht <laurent@opprecht.info>
  8. */
  9. class SearchCoursePlugin extends Plugin
  10. {
  11. protected function __construct()
  12. {
  13. parent::__construct('1.1', 'Laurent Opprecht');
  14. }
  15. /**
  16. * @return SearchCoursePlugin
  17. */
  18. public static function create()
  19. {
  20. static $result = null;
  21. return $result ? $result : $result = new self();
  22. }
  23. public function get_name()
  24. {
  25. return 'search_course';
  26. }
  27. }