Re: Class auto-loader
| From: | waldschrott | Date: | Sun, 25 Jun 2000 17:29:59 +0000 |
| Subject: | Re: Class auto-loader | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22282@lists.php.net to get a copy of this message | ||
If the idea is accepted and that´ll be the next step, the step afterwards would be possibly (I don´t remember properly, but I think that auto-load stuff arose in combination with sessions, didn´t it?) to place a *trace_class_load()* anywhere that registers which classes are included (mabye *used* only to reduce overheads) from which files and stores it into an array, which can be saved to a db (or a file) with a session to restore it´s initial state
then they do not have to create a new 'load.def' file every time and it´ll be a nice option to a definition file in my opinion (a more flexible and comfortable solution, one does not have to search through scripts which classes are included and (even better) which classes are used)
Perhaps we should start a poll like "Who wants to save time and have added interoperability in own scripts?" :)
wrote:
w>> If one could for example do w>> 1 <?php set_class_loader('load.def'); ?> w>> with a file 'load.def' containinge something like classname=>file to load: w>> 1 foo=>foo.inc; w>> 2 foobar=>foobar.inc.php; w>> 3 barfoo=>class.barfoo.inc; If the idea is accepted, this would be the next step. ----Stanislav Malyshev stas@zend.com +972-3-6139665-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° ·0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . ·
| psychedelic experience | gott@kiffen.de | O ° o °o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·