...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getT...
...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }}
...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }}
...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getT...
...ument.class.php#L79 (显示) public function __get($name){ if (!isset($this->_data[$name])) { return null; } return $this->autoConvert($this->_data[$name]);} 魔术方法 __get 实现以对象属性方式获取文档字段值
...L492 (显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_ADD_DB, 'buf' => $name)); $this->_curDbs[] = $name; return $this;} 添加搜索的数据库名, 支持多库同时搜索 参见 setDb addQueryString() 方法 ...
...php#L298 (显示) public function __construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数 __toString() 方法 public string __toString() {return} string 字段名称 源码: sdk/p...
...ion addIndex($field, $text){ $field = strval($field); if (!is_array($this->_texts)) { $this->_texts = array(); } if (!isset($this->_texts[$field])) { $this->_texts[$field] = strval($text); } else { $this->_texts[$field] .= "\n" . strval($text); }} 给字段...
...示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getCode() > 0 ? '(S#' . $this->getCode() . ')' : ''); return $string;} 将类对象转换成字符串 ...
... $ret = array(); try { if ($query === null) { if ($this->_count > 0 && $this->_count > ceil($this->getDbTotal() * 0.001)) { return $ret; } $query = $this->cleanFieldQuery($this->_query); } if (empty($query) || strpos($query, ...