PHP Object Aggregation/Composition Functions
EditRocket provides the following information on Object Aggregation/Composition functions in the PHP source code builder.
void aggregate ( object $object , string $class_name ) - Aggregates methods and properties defined in a class to 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.
array aggregate_info ( object $object ) - Gets the aggregation information for the given object.
void aggregate_methods ( object $object , string $class_name ) - 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.
void aggregate_methods_by_list ( object $object , string $class_name , array $methods_list [, bool $exclude ] ) - Aggregates methods from a class to an existing object using a list of method names.
void aggregate_methods_by_regexp ( object $object , string $class_name , string $regexp [, bool $exclude ] ) - Aggregates methods from a class to an existing object using a regular expression to match method names.
void aggregate_properties ( object $object , string $class_name ) - Aggregates all properties defined in a class to an existing object, except for properties whose names start with an underscore character (_) which are considered private to the aggregated class.
void aggregate_properties_by_list ( object $object , string $class_name , array $properties_list [, bool $exclude ] ) - Aggregates properties from a class to an existing object using a list of property names.
void aggregate_properties_by_regexp ( object $object , string $class_name , string $regexp [, bool $exclude ] ) - Aggregates properties from a class to an existing object using a regular expression to match their names.
-
void deaggregate ( object $object [, string $class_name ] ) - Removes the methods and properties from classes that were aggregated to an object.