<HTML ><HEAD ><TITLE >aggregate_methods</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="Object Aggregation/Composition Functions" HREF="ref.objaggregation.html"><LINK REL="PREVIOUS" TITLE="aggregate_methods_by_regexp" HREF="function.aggregate-methods-by-regexp.html"><LINK REL="NEXT" TITLE="aggregate_properties_by_list" HREF="function.aggregate-properties-by-list.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.aggregate-methods-by-regexp.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.aggregate-properties-by-list.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.aggregate-methods" ></A >aggregate_methods</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN54286" ></A ><P > (PHP 4 >= 4.2.0)</P >aggregate_methods -- dynamic class and object aggregation of methods </DIV ><DIV CLASS="refsect1" ><A NAME="AEN54289" ></A ><H2 >Description</H2 >void <B CLASS="methodname" >aggregate_methods</B > ( object object, string class_name)<BR ></BR ><P > 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. </P ><P > See also <A HREF="function.aggregate.html" ><B CLASS="function" >aggregate()</B ></A >, <A HREF="function.aggregate-info.html" ><B CLASS="function" >aggregate_info()</B ></A >, <A HREF="function.aggregate-methods-by-list.html" ><B CLASS="function" >aggregate_methods_by_list()</B ></A >, <A HREF="function.aggregate-methods-by-regexp.html" ><B CLASS="function" >aggregate_methods_by_regexp()</B ></A >, <A HREF="function.aggregate-properties.html" ><B CLASS="function" >aggregate_properties()</B ></A >, <A HREF="function.aggregate-properties-by-list.html" ><B CLASS="function" >aggregate_properties_by_list()</B ></A >, <A HREF="function.aggregate-properties-by-regexp.html" ><B CLASS="function" >aggregate_properties_by_regexp()</B ></A >, <A HREF="function.deaggregate.html" ><B CLASS="function" >deaggregate()</B ></A > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.aggregate-methods-by-regexp.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.aggregate-properties-by-list.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >aggregate_methods_by_regexp</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.objaggregation.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >aggregate_properties_by_list</TD ></TR ></TABLE ></DIV ></BODY ></HTML >