mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188262 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2ef699dfe9
commit
f570ec153a
8 changed files with 219 additions and 227 deletions
|
@ -1,31 +1,30 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.27 -->
|
||||
<refentry id='function.domelement-get-attribute-node'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Returns the node of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domattribute</type><methodname>DomElement->get_attribute_node</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the node of the attribute named <parameter>name</parameter>
|
||||
in the current element. The <parameter>name</parameter> parameter is
|
||||
case sensitive.
|
||||
</para>
|
||||
<para>
|
||||
If no attribute with given name is found, &false; is returned.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting an attribute node</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domelement-get-attribute-node'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Returns the node of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domattribute</type><methodname>DomElement->get_attribute_node</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the node of the attribute named <parameter>name</parameter>
|
||||
in the current element. The <parameter>name</parameter> parameter is
|
||||
case sensitive.
|
||||
</para>
|
||||
<para>
|
||||
If no attribute with given name is found, &false; is returned.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting an attribute node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -43,11 +42,11 @@ if ($attribute = $root->get_attribute_node('language')) {
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,32 +1,31 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.28 -->
|
||||
<refentry id='function.domelement-get-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_attribute</refname>
|
||||
<refpurpose>
|
||||
Returns the value of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement->get_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the value of the attribute named <parameter>name</parameter>
|
||||
in the current node. The <parameter>name</parameter> parameter is case
|
||||
sensitive.
|
||||
</para>
|
||||
<para>
|
||||
Since PHP 4.3, if no attribute with given <parameter>name</parameter> is
|
||||
found, an empty string is returned.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the value of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id='function.domelement-get-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_attribute</refname>
|
||||
<refpurpose>
|
||||
Returns the value of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement->get_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the value of the attribute named <parameter>name</parameter>
|
||||
in the current node. The <parameter>name</parameter> parameter is case
|
||||
sensitive.
|
||||
</para>
|
||||
<para>
|
||||
Since PHP 4.3, if no attribute with given <parameter>name</parameter> is
|
||||
found, an empty string is returned.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the value of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -43,14 +42,14 @@ echo $root->get_attribute('language'); // en
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domelement_set_attribute</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domelement_set_attribute</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domelement-get-elements-by-tagname'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_elements_by_tagname</refname>
|
||||
<refpurpose>
|
||||
Gets elements by tagname
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomElement->get_elements_by_tagname</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns an array with all the elements which has
|
||||
<parameter>name</parameter> as his tagname. Every element of the
|
||||
array is a DomElement.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<refentry id='function.domelement-get-elements-by-tagname'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->get_elements_by_tagname</refname>
|
||||
<refpurpose>
|
||||
Gets elements by tagname
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomElement->get_elements_by_tagname</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns an array with all the elements which has
|
||||
<parameter>name</parameter> as his tagname. Every element of the
|
||||
array is a DomElement.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
|
@ -41,11 +40,11 @@ for ($i = 0; $i<count($node_array); $i++) {
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domelement-has-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->has_attribute</refname>
|
||||
<refpurpose>
|
||||
Checks to see if an attribute exists in the current node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement->has_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions checks to see if an attribute named
|
||||
<parameter>name</parameter> exists in the current node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Testing the existence of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id='function.domelement-has-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->has_attribute</refname>
|
||||
<refpurpose>
|
||||
Checks to see if an attribute exists in the current node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement->has_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions checks to see if an attribute named
|
||||
<parameter>name</parameter> exists in the current node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Testing the existence of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -43,11 +42,11 @@ $buffer .= '>';
|
|||
?>
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domelement-remove-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->remove_attribute</refname>
|
||||
<refpurpose>
|
||||
Removes attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement->remove_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domelement-remove-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->remove_attribute</refname>
|
||||
<refpurpose>
|
||||
Removes attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement->remove_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,25 +1,24 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- This function is not implemented at all for the time being
|
||||
<refentry id='function.domelement-set-attribute-node'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->set_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Adds new attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>domnode</type><methodname>DomElement->set_attribute_node</methodname>
|
||||
<methodparam><type>domnode</type><parameter>attr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<refentry id='function.domelement-set-attribute-node'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->set_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Adds new attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>domnode</type><methodname>DomElement->set_attribute_node</methodname>
|
||||
<methodparam><type>domnode</type><parameter>attr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
-->
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,29 +1,28 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.27 -->
|
||||
<refentry id='function.domelement-set-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->set_attribute</refname>
|
||||
<refpurpose>
|
||||
Sets the value of an attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domattribute</type><methodname>DomElement->set_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets an attribute with name <parameter>name</parameter> to the given
|
||||
<parameter>value</parameter>. If the attribute does not exist, it will
|
||||
be created.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Setting an attribute</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id='function.domelement-set-attribute'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->set_attribute</refname>
|
||||
<refpurpose>
|
||||
Sets the value of an attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domattribute</type><methodname>DomElement->set_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets an attribute with name <parameter>name</parameter> to the given
|
||||
<parameter>value</parameter>. If the attribute does not exist, it will
|
||||
be created.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Setting an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
@ -32,14 +31,14 @@ $newnode = $doc->append_child($node);
|
|||
$newnode->set_attribute("align", "left");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domelement_get_attribute</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domelement_get_attribute</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry id='function.domelement-tagname'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->tagname</refname>
|
||||
<refpurpose>
|
||||
Returns the name of the current element
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement->tagname</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name of the current node. Calling this function is the same
|
||||
as accessing the <literal>tagname</literal> property, or calling
|
||||
<function>DomElement->node_name</function> of the current node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the node name</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domelement-tagname'>
|
||||
<refnamediv>
|
||||
<refname>DomElement->tagname</refname>
|
||||
<refpurpose>
|
||||
Returns the name of the current element
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement->tagname</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name of the current node. Calling this function is the same
|
||||
as accessing the <literal>tagname</literal> property, or calling
|
||||
<function>DomElement->node_name</function> of the current node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the node name</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -42,11 +41,11 @@ echo $root->node_name(); // chapter
|
|||
?>
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue