📄 function.hw-modifyobject.html
字号:
remove attributes recursively. </span> </p></blockquote> <blockquote><p><b class="note">Note</b>: <span class="simpara"> If you need to delete all attributes with a certain name you will have to pass an empty string as the attribute value. </span> </p></blockquote> <blockquote><p><b class="note">Note</b>: <span class="simpara"> Only the attributes 'Title', 'Description' and 'Keyword' will properly handle the language prefix. If those attributes don't carry a language prefix, the prefix 'xx' will be assigned. </span> </p></blockquote> <blockquote><p><b class="note">Note</b>: <span class="simpara"> The 'Name' attribute is somewhat special. In some cases it cannot be complete removed. You will get an error message 'Change of base attribute' (not clear when this happens). Therefore you will always have to add a new Name first and than remove the old one. </span> </p></blockquote> <blockquote><p><b class="note">Note</b>: <span class="simpara"> You may not surround this function by calls to <a href="function.hw-getandlock.html" class="function">hw_getandlock()</a> and <a href="function.hw-unlock.html" class="function">hw_unlock()</a>. <b>hw_modifyobject()</b> does this internally. </span> </p></blockquote> </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">connection</tt></i></span> <dd> <p class="para"> The connection identifier. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">object_to_change</tt></i></span> <dd> <p class="para"> The object to be changed. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">remove</tt></i></span> <dd> <p class="para"> An array of attributes to remove. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">add</tt></i></span> <dd> <p class="para"> An array of attributes to add. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">mode</tt></i></span> <dd> <p class="para"> The last parameter determines if the modification is performed recursively. 1 means recursive modification. If some of the objects cannot be modified they will be skipped without notice. <a href="function.hw-error.html" class="function">hw_error()</a> may not indicate an error though some of the objects could not be modified. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.hw-mapid.html">hw_mapid</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.hw-mv.html">hw_mv</a></div> <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -