Source for file SylarUtils.php

Documentation is available at SylarUtils.php

  1. <?php
  2. /*
  3. * This file is part of Sylar.
  4. *
  5. * Sylar is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * Sylar is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with Sylar. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * @copyright Copyright Sylar Development Team
  19. * @license http://www.gnu.org/licenses/ GNU Public License V2.0
  20. * @see https://launchpad.net/sylar/
  21. * @see http://www.giano-solutions.com
  22. */
  23.  
  24. /**
  25. * Utility for Sylar
  26. *
  27. * Class that collect the utility to control Sylar systems
  28. *
  29. * @package Sylar
  30. * @version 1.0
  31. * @since 16/feb/08
  32. * @author Gianluca Giusti [brdp] <g.giusti@giano-solutions.com>
  33. * @copyright Sylar Development Team
  34. */
  35. class Sylar_SylarUtils{
  36. /**
  37. * Show all sylar costant. All costant that starts with SYLAR_
  38. *
  39. * @since 02-2008
  40. * @author Gianluca Giusti [brdp] <g.giusti@giano-solutions.com>
  41. *
  42. * @return void
  43. */
  44. public static function showDefinedCostant(){
  45. foreach (get_defined_constants() as $key => $value ){
  46. if(substr_count($key, "SYLAR_") > 0 )
  47. echo "\n".$key." = ".$value;
  48. }
  49. }
  50. /**
  51. * Show all included and required files
  52. *
  53. * @since 02-2008
  54. * @author Gianluca Giusti [brdp] <g.giusti@giano-solutions.com>
  55. *
  56. * @return void
  57. */
  58. public static function showIncludedFiles(){
  59. foreach (get_included_files() as $key => $value ){
  60. echo "\n".$key." = ".$value;
  61. }
  62. }
  63. }
  64.  
  65. ?>

Documentation generated on Thu, 24 Apr 2008 16:14:23 +0200 by phpDocumentor 1.3.0RC3