Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class Autoloading?
#4
Yeah the classes will be available when they are included, problem would then be extending classes, which would have to be deferred.

The common hook is called after all plugins are loaded ( included ), which in turn include all their classes. So they should all be available at that point.

Now if you are talking about dynamically instantiating classes, then that will indeed be a problem, but php has actual autoloading built in to 5.3, so you can probably do something with that on your own. Not sure if it needs to be in core.

I mean can't plugins just add their classes to it themselves, even with a hook there is no way to make plugin use it.

It is possible I have no idea what i am talking about, or misunderstand what you are trying to suggest.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Class Autoloading? - by Angryboy - 2014-03-14, 04:40:58
RE: Class Autoloading? - by shawn_a - 2014-03-14, 05:02:02
RE: Class Autoloading? - by Angryboy - 2014-03-14, 05:07:13
RE: Class Autoloading? - by shawn_a - 2014-03-14, 06:28:05
RE: Class Autoloading? - by Angryboy - 2014-03-14, 08:43:46
RE: Class Autoloading? - by shawn_a - 2014-03-14, 09:44:52
RE: Class Autoloading? - by Angryboy - 2014-03-14, 10:15:01
RE: Class Autoloading? - by shawn_a - 2014-03-14, 10:27:05
RE: Class Autoloading? - by shawn_a - 2014-03-14, 10:34:37
RE: Class Autoloading? - by shawn_a - 2014-03-14, 12:34:53
RE: Class Autoloading? - by Angryboy - 2014-03-14, 17:59:05



Users browsing this thread: 1 Guest(s)