PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/system/systems/class/systems.class.php

https://bitbucket.org/threetopia/thtech
PHP | 44 lines | 29 code | 1 blank | 14 comment | 6 complexity | 280f115dc1d26e32b4f2c4483fcf912e MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. /* بسم الله الرحمن الرحيم
  3. * File name : system.class.php
  4. * Author : Tri Hartanto
  5. * Site : trihartanto.com
  6. * Framework : thtech
  7. * Engine type : Engine System
  8. * Version : 2
  9. * License : GPL
  10. * Create Date : 23 February 2011
  11. * Modified Date : 04 Apr 2014
  12. * File Description : This file contains system class to be used by the framework and CMS system.
  13. *
  14. * For more license information please kindly open and read LICENSE.txt file
  15. */
  16. class Systems
  17. {
  18. public function __call($method,$arguments)
  19. {
  20. if(method_exists($GLOBALS['_SysEngine'],$method))
  21. {
  22. return call_user_func_array(array($GLOBALS['_SysEngine'],$method),$arguments);
  23. }
  24. return false;
  25. }
  26. public function __get($var=NULL)
  27. {
  28. if(array_key_exists($var,$GLOBALS))
  29. {
  30. return $GLOBALS[$var];
  31. }
  32. else if(array_key_exists($var,$GLOBALS['_SysEngine']->dynamic_loaded_class))
  33. {
  34. return $GLOBALS['_SysEngine']->dynamic_loaded_class[$var];
  35. }
  36. else if(array_key_exists($var,$GLOBALS['_SysEngine']->static_loaded_class))
  37. {
  38. return $GLOBALS['_SysEngine']->static_loaded_class[$var];
  39. }
  40. return false;
  41. }
  42. }
  43. ?>