Posted on March 14th, 2008 by rolode
hw_New_Document
建立新文件。
语法: int hw_new_document(string object_record, string document_data, int document_size);
返回值: 整数
函数种类: 网络系统
内容说明
本函数用来建立新的 Hyperwave 文件。参数 object_record 为类记录。参数 document_data 为文件资料。参数 document_size 为文件大小。治募注意的是本函数不能插入文件到 Hyperwave 服务器上。
参考
hw_InsertDocument() hw_PipeDocument()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on March 14th, 2008 by rolode
hw_Mv
移动类。
语法: void hw_mv(int connection, array objrec, int from, int dest);
返回值: 无
函数种类: 网络系统
内容说明
本函数用来复制指定的类。参数 connection 为连接代码。参数 objrec 为待复制的类代码数组。参数 from 及 dest 分别为来源及目的的代码。
参考
hw_Deleteobject() hw_Cp()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on March 14th, 2008 by rolode
hw_Modifyobject
修改类记录。
语法: boolean hw_modifyobject(int connection, int object_to_change, array remove, array add, int [mode]);
返回值: 布尔值
函数种类: 网络系统
内容说明
本函数可用来移除、增加及修改类。参数 connection 为和 Hyperwave 服务器的连接代码。参数 object_to_change 为待修改的类。参数 remove 及 add 分别为要移除及加入的属性列示。参数 mode 通常省略,若要递回修改,则该参数设为 1。成功则返回 true。
使用范例
例一: 修改属性
<?php
// 之前的程序省略
$remarr = array(“Name” => “books”);
$addarr = array(“Name” => “articles”);
$hw_modifyobject($connect, $objid, $remarr, $addarr);
// 之后的程序省略
?>
例二: 新增属性
<?php
// 之前的程序省略
$remarr = array(“Name” => 0);
$addarr = array(“Name” => “articles”);
$hw_modifyobject($connect, $objid, $remarr, $addarr);
// […]
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on March 14th, 2008 by rolode
hw_InsertObject
插入类记录。
语法: int hw_insertobject(int connection, string object_record, string parameter);
返回值: 整数
函数种类: 网络系统
内容说明
本函数用来插入新类,类可以是任何合于 Hyperwave 规定的类,详细信息请参考 HG-CSP 文件。参数 connection 为和 Hyperwave 服务器的连接代码。参数 object_record 为欲插入的类记录。参数 parameter 为特殊的参数,例如 invisible,进一步信息也请参考 HG-CSP 文件。
参考
hw_InsertDocument() hw_PipeDocument() hw_InsColl() hw_InsDoc()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on March 14th, 2008 by rolode
hw_InsertDocument
上传文件。
语法: int hw_insertdocument(int connection, int parentID, int hw_document);
返回值: 整数
函数种类: 网络系统
内容说明
本函数用来上传任何格式的新文件。参数 connection 为和 Hyperwave 服务器的连接代码。参数 parentID 为指定的父类 ID 值。参数 hw_document 为欲插入的文件。治募注意的是本函数上传文件前要先使用 hw_New_Document() 来建立新文件。
参考
hw_New_Document() hw_PipeDocument()
Filed under: PHP 技术 学习 教程 | No Comments »