Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > 82c55661c0e72fc211ea70d3eba10d72 > files > 104

php-pear-HTML_Progress-1.2.5-2.noarch.rpm

<html>
<head>
<title>HTML_Progress::setUI</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">HTML_Progress</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_HTML_Progress.html" class="menu">class tree: HTML_Progress</a> ]
		  [ <a href="../elementindex_HTML_Progress.html" class="menu">index: HTML_Progress</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"../HTML_Progress/tutorial_progress.getui.pkg.html">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a href=
"../HTML_Progress/tutorial_progress.setmodel.pkg.html">Next</a></td>
</tr>
</table>
<div><a name=""></a><div class="ref-title-box"><div class="ref-title"><span class="function">HTML_Progress::setUI</span></div>
  <div class="ref-purpose">sets the new instance of HTML_Progress_UI object</div></div>

 <span><a name="synopsis"></a><h2 class="title">Synopsis</h2><div class="ref-synopsis"><p><p class="func-synopsis">require_once 'HTML/Progress.php';</p>
    void <span class="function">HTML_Progress::setUI</span>(
     string <i>$ui</i>)</p></div></span>

 <span><a name="description"></a><h2 class="title">Description</h2><p>This method is used to set the new instance of HTML_Progress_UI object 
   used to manage graphical properties.</p>
  <strong>$ui</strong> is the name of a class (that must exists) 
   which inherit from HTML_Progress_UI.<br /></span>

 <span><a name="parameter"></a><h2 class="title">Parameter</h2><p><ul class="parameter"><dl><dt>string
      <i>$ui</i><dd>
     <li><p>a classname that will replace the default HTML_Progress_UI object.</p></li></dl></ul></p></span>

 <span><a name="throws"></a><h2 class="title">Throws</h2><p><table frame = "border"><p><strong>Possible PEAR_Error values</strong></p><colgroup span = "4"/><thead><tr><td>Error level</td>
       <td>Error code</td>
       <td>Error message</td>
       <td>Solution</td></tr></thead>
     <tbody><tr><td>error</td>
       <td><b>HTML_PROGRESS_ERROR_INVALID_INPUT</b></td>
       <td>invalid input, parameter #1 &quot;<i>$ui</i>&quot; was expecting &quot;class defined&quot;</td>
       <td>Defines the new class</td></tr>
      <tr><td>error</td>
       <td><b>HTML_PROGRESS_ERROR_INVALID_INPUT</b></td>
       <td>invalid input, parameter #1 &quot;<i>$ui</i>&quot; was expecting &quot;HTML_Progress_UI extends&quot;</td>
       <td>Fixed the inheritance of the new class</td></tr></tbody></table></p></span>

 <span><a name="note"></a><h2 class="title">Note</h2>( HTML_Progress &gt;= 1.0 )<br />
  <p><table class="note"><tr><td class="note_img"><img src="../media/important.png"></td><td class="note_text">This function can not be called statically.</td></tr></table></p></span>

 <span><a name="see"></a><h2 class="title">See</h2><p><a href="../HTML_Progress/tutorial_progress.getui.pkg.html">HTML_Progress::getUI</a></p></span>

 <span><a name="example"></a><h2 class="title">Example</h2><p><div class="listing"><pre><ol><li><span class="src-php">&lt;?php</span></li>
<li><span class="src-inc">require_once </span><span class="src-str">'HTML/Progress.php'</span><span class="src-sym">;</span></li>
<li>&nbsp;</li>
<li><span class="src-key">class </span><span class="src-id">Progress_ITDynamic </span><span class="src-key">extends </span><a href="../HTML_Progress/Progress_UI/HTML_Progress_UI.html">HTML_Progress_UI</a></li>
<li><span class="src-sym">{</span></li>
<li>    <span class="src-key">function </span><span class="src-id">Progress_ITDynamic</span><span class="src-sym">(</span><span class="src-sym">)</span></li>
<li>    <span class="src-sym">{</span></li>
<li>        <span class="src-id">parent</span><span class="src-sym">::</span><span class="src-id">HTML_Progress_UI</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>        </li>
<li>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">setCellCount</span><span class="src-sym">(</span><span class="src-num">20</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">setProgressAttributes</span><span class="src-sym">(</span><span class="src-str">'background-color=#EEE'</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">setStringAttributes</span><span class="src-sym">(</span><span class="src-str">'background-color=#EEE color=navy'</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">setCellAttributes</span><span class="src-sym">(</span><span class="src-str">'inactive-color=#FFF active-color=#444444'</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>    <span class="src-sym">}</span></li>
<li><span class="src-sym">}</span></li>
<li>&nbsp;</li>
<li><span class="src-var">$bar </span>= <span class="src-key">new </span><span class="src-id"><a href="../HTML_Progress/HTML_Progress.html">HTML_Progress</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><span class="src-var">$bar</span><span class="src-sym">-&gt;</span><span class="src-id">setUI</span><span class="src-sym">(</span><span class="src-str">'Progress_ITDynamic'</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><span class="src-var">$ui </span>=<span class="src-sym">&amp; </span><span class="src-var">$bar</span><span class="src-sym">-&gt;</span><span class="src-id">getUI</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>&nbsp;</li>
<li><a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$ui</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><span class="src-php">?&gt;</span></li>
</ol></pre></div></p></span></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="../HTML_Progress/tutorial_progress.getui.pkg.html">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"../HTML_Progress/tutorial_part3-reference.pkg.html">Up</a></td>
<td width="33%" align="right" valign="top"><a href=
"../HTML_Progress/tutorial_progress.setmodel.pkg.html">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top"><span class="function">HTML_Progress::getUI</span></td>
<td width="34%" align="center" valign="top">Reference Guide</td>
<td width="33%" align="right" valign="top"><span class="function">HTML_Progress::setModel</span></td>
</tr>
</table>
        <div class="credit">
		    <hr />
		    Documentation generated on Sun, 12 Sep 2004 20:23:10 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>