progress.setui.pkg
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PKG 代码 · 共 119 行
PKG
119 行
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.3 $ -->
<refentry id="{@id}">
<refnamediv>
<refname><function>HTML_Progress::setUI</function></refname>
<refpurpose>sets the new instance of HTML_Progress_UI object</refpurpose>
</refnamediv>
<refsect1 id="{@id synopsis}">
<title>Synopsis</title>
<refsynopsisdiv>
<refsynopsisdivinfo>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'HTML/Progress.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>void <function>HTML_Progress::setUI</function></funcdef>
<paramdef>string <parameter>$ui</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdivinfo>
</refsynopsisdiv>
</refsect1>
<refsect1 id="{@id description}">
<title>Description</title>
<para>
This method is used to set the new instance of HTML_Progress_UI object
used to manage graphical properties.
</para>
<simpara>
<emphasis>$ui</emphasis> is the name of a class (that must exists)
which inherit from HTML_Progress_UI.
</simpara>
</refsect1>
<refsect1 id="{@id parameter}">
<title>Parameter</title>
<para>
<variablelist>
<varlistentry>
<term>
<type>string</type>
<parameter>$ui</parameter>
</term>
<listitem>
<para>
a classname that will replace the default HTML_Progress_UI object.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="{@id throws}">
<title>Throws</title>
<para>
<table frame="all">
<title>Possible PEAR_Error values</title>
<tgroup cols="4">
<thead>
<row>
<entry>Error level</entry>
<entry>Error code</entry>
<entry>Error message</entry>
<entry>Solution</entry>
</row>
</thead>
<tbody>
<row>
<entry>error</entry>
<entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry>
<entry>invalid input, parameter #1 "<parameter>$ui</parameter>" was expecting "class defined"</entry>
<entry>Defines the new class </entry>
</row>
<row>
<entry>error</entry>
<entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry>
<entry>invalid input, parameter #1 "<parameter>$ui</parameter>" was expecting "HTML_Progress_UI extends"</entry>
<entry>Fixed the inheritance of the new class</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 id="{@id note}">
<title>Note</title>
<simpara>
( HTML_Progress >= 1.0 )
</simpara>
<para>
<important>
This function can not be called statically.
</important>
</para>
</refsect1>
<refsect1 id="{@id see}">
<title>See</title>
<para>
{@tutorial progress.getui.pkg}
</para>
</refsect1>
<refsect1 id="{@id example}">
<title>Example</title>
<example>
{@example setui.php}
</example>
</refsect1>
</refentry>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?