SysInfoBase.php 801 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Hold PhpMyAdmin\SysInfoBase class
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. namespace PhpMyAdmin;
  9. /**
  10. * Basic sysinfo class not providing any real data.
  11. *
  12. * @package PhpMyAdmin
  13. */
  14. class SysInfoBase
  15. {
  16. public $os = PHP_OS;
  17. /**
  18. * Gets load information
  19. *
  20. * @return array with load data
  21. */
  22. public function loadavg()
  23. {
  24. return array('loadavg' => 0);
  25. }
  26. /**
  27. * Gets information about memory usage
  28. *
  29. * @return array with memory usage data
  30. */
  31. public function memory()
  32. {
  33. return array();
  34. }
  35. /**
  36. * Checks whether class is supported in this environment
  37. *
  38. * @return true on success
  39. */
  40. public function supported()
  41. {
  42. return true;
  43. }
  44. }