public function __construct() { if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . __CLASS__); } self::$_server = $xs->getScwsServer(); self::$_server->setTimeout(0); $this->_charset = $xs->getDefaultCharset(); if (!defined('SCWS_MULTI_NONE')) { define('SCWS_MULTI_NONE', 0); define('SCWS_MULTI_SHORT', 1); define('SCWS_MULTI_DUALITY', 2); define('SCWS_MULTI_ZMAIN', 4); define('SCWS_MULTI_ZALL', 8); } } }