class_optimizer.php 708 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: class_optimizer.php 30871 2012-06-27 09:32:37Z zhangjie $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class optimizer {
  12. private $optimizer = array();
  13. public function __construct($type) {
  14. $this->optimizer = new $type();
  15. }
  16. public function check() {
  17. return $this->optimizer->check();
  18. }
  19. public function optimizer() {
  20. return $this->optimizer->optimizer();
  21. }
  22. public function option_optimizer($options) {
  23. return $this->optimizer->option_optimizer($options);
  24. }
  25. public function get_option() {
  26. return $this->optimizer->get_option();
  27. }
  28. }
  29. ?>