phpword.class.php 960 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * ZenTaoPMS - Open-source project management system.
  4. *
  5. * @copyright Copyright 2009-2025 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.chandao.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. *
  8. * A third-party license is embedded for some of the code in this file:
  9. * The use of the source code of this file is also subject to the terms
  10. * and consitions of the license of "PHPWord" (LGPL, see
  11. * </lib/vendor/phpoffice/phpword/COPYING>).
  12. */
  13. require_once __DIR__ . '/h2d_htmlconverter.php';
  14. require_once __DIR__ . '/simple_html_dom.php';
  15. require_once __DIR__ . '/styles.php';
  16. require_once dirname(__FILE__, 2) . '/base/delegate/delegate.class.php';
  17. class phpword extends baseDelegate
  18. {
  19. protected static $className = 'PhpOffice\PhpWord\PhpWord';
  20. public function __construct()
  21. {
  22. $this->instance = new static::$className();
  23. }
  24. }