cvs: peardoc /en/package/html/html-template-flexy/element html_template_flexy_element.xml
| From: | Alan Knowles | Date: | Sun, 03 Aug 2003 01:23:16 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-template-flexy/element html_template_flexy_element.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1183@lists.php.net to get a copy of this message | ||
alan_k Sat Aug 2 21:23:16 2003 EDT
Modified files:
/peardoc/en/package/html/html-template-flexy/element
html_template_flexy_element.xml
Log:
element public vars. added
Index: peardoc/en/package/html/html-template-flexy/element/html_template_flexy_element.xml
diff -u peardoc/en/package/html/html-template-flexy/element/html_template_flexy_element.xml:1.3
peardoc/en/package/html/html-template-flexy/element/html_template_flexy_element.xml:1.4
--- peardoc/en/package/html/html-template-flexy/element/html_template_flexy_element.xml:1.3 Sat Aug
2 10:05:49 2003
+++ peardoc/en/package/html/html-template-flexy/element/html_template_flexy_element.xml Sat Aug 2
21:23:16 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
@@ -10,7 +10,7 @@
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
- require_once 'Flexy/Element.php';
+ require_once 'HTML/Template/Flexy/Element.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>new
<function>HTML_Template_Flexy_Element</function></funcdef>
@@ -22,7 +22,10 @@
<refsect1
id="package.html.html-template-flexy.element.html-template-flexy-element.desc">
&title.desc;
- ¬documented;
+ <para>
+ Flexy uses a single lightweight classe to represent All HTML Tags, All the variables of the
class are
+ public, and you are encouraged to use them. And the methods provide common
+ </para>
</refsect1>
@@ -36,23 +39,147 @@
<listitem>
<para>
- <parameter>$tag</parameter>
+ <parameter>$tag</parameter> - The name of the HTML Tag eg. img for
<img ....
</para>
</listitem>
</itemizedlist>
<itemizedlist>
<listitem>
<para>
- <parameter>$attributes</parameter>
-
-
- Associative array of table tag attributes or HTML attributes
name="value" pairs
+ <parameter>$attributes</parameter> -
+ Associative array of attributes, where key="value" is output when you
turn it
+ in toHtml(), If you need to represent a attribute without a value, use &true; as
the value.
+ This also accepts a string in the format "href='/test.jpg'
alt='test'", which will be
+ parsed into the attributes array of the object.
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
+
+ <refsect1>
+ <title>Public Properties</title>
+
+
+
+ <variablelist>
+
+
+
+ <varlistentry>
+ <term>
+
+ <type>string</type>
+ <parameter>element->tag</parameter>
+ </term>
+ <listitem>
+ <para>
+ The name of the html element eg. img for <img...
+ </para>
+ </listitem>
+ </varlistentry>
+
+
+
+ <varlistentry>
+ <term>
+
+ <type>array</type>
+ <parameter>$element->attributes</parameter>
+ </term>
+ <listitem>
+ <para>
+ Attributes for the element
+ </para>
+
+ </listitem>
+ </varlistentry>
+
+
+
+ <varlistentry>
+ <term>
+
+ <type>array</type>
+ <parameter>$element->children</parameter>
+ </term>
+ <listitem>
+ <para>
+ All the sub elements inside this, can be any object that implements toHtml(), or a
string.
+
+ </para>
+
+ </listitem>
+ </varlistentry>
+
+
+
+ <varlistentry>
+ <term>
+ <type>string</type>
+ <parameter>$element->override</parameter>
+
+ </term>
+ <listitem>
+ <para>
+ this value of thiswill be output when toHtml() is called, rather than the tags.
+
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>
+ <type>string|object</type>
+ <parameter>$element->prefix</parameter>
+
+ </term>
+ <listitem>
+ <para>
+ string or object that implements toHtml() method, and is returned by toHtml() before
the tag HTML
+ </para>
+ </listitem>
+ </varlistentry>
+
+
+ <varlistentry>
+ <term>
+ <type>string|object</type>
+ <parameter>$element->suffix</parameter>
+
+ </term>
+ <listitem>
+ <para>
+ string or object that implements toHtml() method, and is returned by toHtml() after
the tag HTML
+
+ </para>
+ </listitem>
+ </varlistentry>
+
+
+ <varlistentry>
+ <term>
+ <type>mixed</type>
+ <parameter>$element->value</parameter>
+
+ </term>
+ <listitem>
+ <para>
+ when you create an element, that is to be merged later with a full definition, you can
assign the
+ value here, and during toHtml(), the toValue() method will be called and select
options, checkboxes and
+ input values will be correctly filled in.
+
+ </para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
+ </refsect1>
+
+
+
<refsect1
id="package.html.html-template-flexy.element.html-template-flexy-element.throws">
&title.throws;
<para>