Talk:Developer's Guide :: Owner Parent

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

"Ownership specifies a relation between two components in which component A owns component B, and B is listed in A->components property, which is a collection or a list."

To say that "ownership specifies [...that...] A owns B" is not very illuminating, even if "owns" is emphasized.

Based on Delphi (non-PHP), the salient points are probably that the ownership relationship means that A remembers B in a list, and may have final authority over freeing (destroying) members of that list. Furthermore, components that expect to be owned may call on their owners for some functionality.

By contrast, parenthood is primarily about visual relationships.

But for my part this is mostly speculation... I hope someone will rewrite this to explain it better!

Gwideman 06:56, 19 June 2008 (CEST)

Personal tools