admin_page.class.php 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Admin pages class definition
  5. * @package chamilo.admin
  6. */
  7. /**
  8. *
  9. * @license see /license.txt
  10. * @author Laurent Opprecht <laurent@opprecht.info> for the Univesity of Geneva
  11. */
  12. class AdminPage extends Page
  13. {
  14. /**
  15. *
  16. * @return AdminPage
  17. */
  18. static function create($title = '')
  19. {
  20. return new self($title);
  21. }
  22. function __construct($title = '')
  23. {
  24. global $this_section;
  25. $this_section = SECTION_PLATFORM_ADMIN;
  26. api_protect_admin_script();
  27. if (empty($title)) {
  28. $title = get_lang(get_class($this));
  29. }
  30. $this->title = $title;
  31. $this->breadcrumbs = array();
  32. $this->breadcrumbs[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
  33. }
  34. }