note 58885 added to keyword.extends
| From: | BashI dot at osu1 dot php dot net | Date: | Sat, 19 Nov 2005 05:43:30 +0000 |
| Subject: | note 58885 added to keyword.extends | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98791@lists.php.net to get a copy of this message | ||
Here is a simple idea that I use when I need my abstract classes (the inherited classes) implemented
before my functional classes.
<?php
$_CLASSES = array_merge (
glob ("classes/*/*.abstract.php"),
glob ("classes/*/*.class.php")
);
foreach ($_CLASSES AS $_CLASS) {
require ($_CLASS);
}
?>
----
Manual Page -- http://www.php.net/manual/en/keyword.extends.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58885
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58885&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58885&report=yes
Search -- http://master.php.net/manage/user-notes.php