XSServer.class.php 470 B

12345678910111213141516171819
  1. <?php
  2. namespace Common\Server;
  3. class XSServer
  4. {
  5. public $XS; //XS对象
  6. public $XSDocument; //XSDocument对象
  7. /**
  8. * 初始化
  9. * @param string $ini 配置名称
  10. */
  11. public function __construct($ini){
  12. require_once '/usr/local/xunsearch/sdk/php/lib/XS.php';
  13. $this->XS = new \XS($ini); // 自动使用 $prefix/sdk/php/app/{$ini}.ini 作项目配置文件
  14. $this->XSDocument = new \XSDocument;
  15. }
  16. }