... UTF-8 $check_file bool 是否检测参数为文件的情况 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L253 (显示) public function addExdata($data, $check_file = true){ if (strlen($data) < 255 && $check_file &&...
...属的字段名称, 默认不指定则为主键字段 (类型为ID) {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L220 (显示) public function del($term, $field = null){ // get field $field = $field === null ? $this->xs->getFieldId...
... mixed query(string $sql) $sql string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L722 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = sqlite_query($this->link, $sql); if ($res === false) { throw ...
...bcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[2]: *** [libscws.la] Error 1 make[2]: Leaving directory `/home/sundaming/scws-1.1.6/libscws' make[1]: *** [all-recursive] Error 1 gcc -Wl,--base-file,.libs/cygscws-1.dll-base -Wl,-e,__cygwin_...
... $data['content'] = $this->filterHtml($data['content']); return $data; } public function filterHtml($str) { $str=eregi_replace("", '', $str); $str=str_replace(" ", '', $str); $str=str_replace("\n", '', $str); $str...
...ng 中使用 __toString() 方法 public string __toString() {return} string 异常的简要描述信息 源码: sdk/php/lib/XS.class.php#L149 (显示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->_file) . '(' . $this->_line . '):...
... mixed query(string $sql) $sql string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L781 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSEx...
...uery() 方法 abstract public mixed query($sql) $sql {return} mixed 非 SELECT 语句返回执行结果(true/false), SELECT 语句返回所有结果行的数组 源码: sdk/php/util/XSDataSource.class.php#L439 (显示) abstract public function query($sql); 查询 SQ...
process() 方法 public void process($data, $cs=false) $data $cs 源码: sdk/php/util/XSDataSource.class.php#L990 (显示) public function process($data, $cs = false){ echo "\n----- DEBUG DATA INFO -----\n"; print_r($data); return $data;}
getIterator() 方法 public void getIterator() 源码: sdk/php/lib/XSFieldScheme.class.php#L189 (显示) public function getIterator(){ return new ArrayIterator($this->_fields);} IteratorAggregate 接口, 以支持 foreach 遍历访问所有字段