...tring 转换后的相对路径 源码: sdk/php/lib/XS.class.php#L79 (显示) public static function getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, '/'); $to = ...
...若不存在则返回 null 源码: sdk/php/util/XSUtil.class.php#L161 (显示) public static function getOpt($short, $long = null, $extra = false){ if (self::$options === null) { self::parseOpt(); } $value = null; $options = self::$options; if ($long !== null && isset($opt...
...果数量, 估算数值 源码: sdk/php/lib/XSSearch.class.php#L547 (显示) public function count($query = null){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_count; } $cmd = new XSCommand(XS_CMD...
...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L331 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $th...
...的API 但是不知道怎么调用,我用这个方式调用API,结果显示在网页上,我要如何调用才能将结果获取下来呢?比如我能将结果直接存在一个变量中,寻求指点,谢谢!
...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L306 (显示) public function delSynonym($raw, $synonym = null){ $raw = strval($raw); $synonym = $synonym === null ? '' : strval($synonym); if ($raw !== '') { $cmd = new XSCommand(XS_CMD_INDEX_SYNONYMS, XS_CMD_INDEX_...
...象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $t...
...ch/sdk/php/util/XSDataSource.class.php on line 332 过滤器 debug 不显示 json导入出错
...参数表示数据编码 源码: sdk/php/lib/XSDocument.class.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $th...