... && ($pos2 = strrpos($this->tokenizer, ')', $pos1 + 1))) { $name = 'XSTokenizer' . ucfirst(trim(substr($this->tokenizer, 0, $pos1))); $arg = substr($this->tokenizer, $pos1 + 1, $pos2 - $pos1 - 1); } else { $name = 'XSTokenizer' . ucfirst($this->tokenizer);...
...new XSFieldMeta($field, $config); } if (isset($this->_fields[$field->name])) { throw new XSException('Duplicated field name: `' . $field->name . '\''); } if ($field->isSpeical()) { if (isset($this->_typeMap[$field->type])) { $prev = $this->_typeMap[$field->type];...
setProject() 方法 public void setProject(string $name, string $home='') $name string 项目名称 $home string 项目在服务器上的目录路径, 可选参数(不得超过255字节). 源码: sdk/php/lib/XSServer.class.php#L251 (显示) public function setProject($nam...
setName() 方法 public void setName(string $name) $name string 项目名称 源码: sdk/php/lib/XS.class.php#L378 (显示) public function setName($name){ $this->_config['project.name'] = $name;} 修改当前项目名称 注意,必须在 getSearch 和 getIndex 前调用...
offsetSet() 方法 public void offsetSet(string $name, mixed $value) $name string 字段名称 $value mixed 字段值 源码: sdk/php/lib/XSDocument.class.php#L309 (显示) public function offsetSet($name, $value){ if (!is_null($name)) { $this->__set(strval($nam...
...e_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); if(empty($result...
__get() 方法 public mixed __get(string $name) $name string 属性名称 {return} mixed 属性值 源码: sdk/php/lib/XS.class.php#L182 (显示) public function __get($name){ $getter = 'get' . $name; if (method_exists($this, $getter)) { return $this->$getter...
__set() 方法 public void __set(string $name, mixed $value) $name string 属性名称 $value mixed 属性值 源码: sdk/php/lib/XS.class.php#L202 (显示) public function __set($name, $value){ $setter = 'set' . $name; if (method_exists($this, $setter)) { re...
...new XSFieldMeta($field, $config); } if (isset($this->_fields[$field->name])) { throw new XSException('Duplicated field name: `' . $field->name . '\''); } if ($field->isSpeical()) { if (isset($this->_typeMap[$field->type])) { $prev = $this->_typeMap[$field->type];...
autoload() 方法 public static void autoload(string $name) $name string 类的名称 源码: sdk/php/lib/XS.class.php#L533 (显示) public static function autoload($name){ $file = XS_LIB_ROOT . '/' . $name . '.class.php'; if (file_exists($file)) { require_once $file...