mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Some of the aggregate functions. Simple doc, examples in main ref page.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90843 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e26877c007
commit
c21e04aedf
3 changed files with 127 additions and 3 deletions
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.aggregate-by-list">
|
||||
<refnamediv>
|
||||
<refname>aggregate_methods_by_list</refname>
|
||||
<refpurpose>
|
||||
selective dynamic class methods aggregation to an object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>aggregate_methods_by_list</methodname>
|
||||
<methodparam><type>object</type><parameter>object</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>class_name</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>methods_list</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>boolean</type><parameter>exclude</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Aggregates methods from a class to
|
||||
an existing object using a list of method names. The optional paramater
|
||||
<parameter>exclude</parameter> is used to decide whether the list
|
||||
contains the names of methods to include in the aggregation (i.e.
|
||||
<parameter>exclude</paramete> is &false;, which is the default value),
|
||||
or to exclude from the aggregation (<parameter>exclude</parameter> is
|
||||
&true;).
|
||||
</para>
|
||||
<para>
|
||||
The class constructor or methods
|
||||
whose names start with an underscore character (_), which are
|
||||
considered private to the aggregated class, are always
|
||||
excluded.
|
||||
</para>
|
||||
<simpara>
|
||||
See also
|
||||
<function>aggregate</function>,
|
||||
<function>aggregate_info</function>,
|
||||
<function>aggregate_methods</function>,
|
||||
<function>aggregate_methods_by_regexp</function>,
|
||||
<function>aggregate_properties</function>,
|
||||
<function>aggregate_properties_by_list</function>,
|
||||
<function>aggregate_properties_by_regexp</function>,
|
||||
<function>deaggregate</function>
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
56
reference/objaggregation/functions/aggregate-methods.xml
Normal file
56
reference/objaggregation/functions/aggregate-methods.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.aggregate-methods">
|
||||
<refnamediv>
|
||||
<refname>aggregate_methods</refname>
|
||||
<refpurpose>
|
||||
dynamic class and object aggregation of methods
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>aggregate_methods</methodname>
|
||||
<methodparam><type>object</type><parameter>object</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>class_name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Aggregates all methods defined in a class to
|
||||
an existing object, except for the class constructor, or methods
|
||||
whose names start with an underscore character (_) which are
|
||||
considered private to the aggregated class.
|
||||
</para>
|
||||
<simpara>
|
||||
See also
|
||||
<function>aggregate</function>,
|
||||
<function>aggregate_info</function>,
|
||||
<function>aggregate_methods_by_list</function>,
|
||||
<function>aggregate_methods_by_regexp</function>,
|
||||
<function>aggregate_properties</function>,
|
||||
<function>aggregate_properties_by_list</function>,
|
||||
<function>aggregate_properties_by_regexp</function>,
|
||||
<function>deaggregate</function>
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.aggregate">
|
||||
<refnamediv>
|
||||
<refname>aggregate</refname>
|
||||
<refpurpose>
|
||||
dynamic class and object aggregation
|
||||
dynamic class and object aggregation of methods and properties
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
|
@ -16,13 +16,14 @@
|
|||
</methodsynopsis>
|
||||
<para>
|
||||
Aggregates methods and properties defined in a class to
|
||||
an existing object. Methods and properties starting with
|
||||
an existing object. Methods and properties with names starting with
|
||||
an underscore character (_) are considered private to
|
||||
the aggregated class and are not used, constructors are
|
||||
also excluded from the aggregation procedure.
|
||||
</para>
|
||||
<simpara>
|
||||
See also
|
||||
<function>aggregate_info</function>,
|
||||
<function>aggregate_methods</function>,
|
||||
<function>aggregate_methods_by_list</function>,
|
||||
<function>aggregate_methods_by_regexp</function>,
|
||||
|
|
Loading…
Reference in a new issue