|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-13 15:42 UTC] black@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 02:00:01 2025 UTC |
if i agregate an object which is defined as such: class something extends content { ... } with a class making use of "parent::", it gives me a "no parent class available" - when it should recognise content as its parent if i had no "extends content" i would think of this as valid, but this way i dont - parent:: should be available if the object which aggregates a class has a parent perhaps something like the following should be considered as an example how method aggregation should work in 5.x (also the way it works in c++, basically i just did something i think is a php ekvivalent) <?php class testing { function testing() {} function boo(); } function testing::boo() { echo "a"; } $classss = new testing; $classss->boo(); ?> this way i could put functions into seperate files instead of having a 100k file with the class (if it requires that much code) -> having 10 5k files is easier to maintain than 1 50k file.