admin_page.class.php 721 B

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