Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin Template/Framework
#2
I do like that the assets are prepackaged, and lang.
although the only htaccess you need is allow for assets folders. js, css etc.

But the organization of the oop seems odd to me.

I think to benefit from this, the entire plugin needs to be class based so no globals are necessary.
And you do not need to replace yourplugin_id all over the place or use a namespace.

$uniqueID = new plugin($uniqueID);
add some stuff here version author
$uniqueid->author =
The only hook into the class could be something like register_plugin(){global uniqueID;$uniqueID->register);

I guess you would still have the same problem though with globals but you could prevent collisions with variable variables and variable function names. But you would need to handle callbacks from filters and hooks with normal functions or you might lose a argument in the process if you can only pass an action.

But another issue is that gs requirements are still 5.2.3, so alot of oop stuff might not be useable until 5.3
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Plugin Template/Framework - by Angryboy - 2014-03-19, 02:16:49
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 02:48:56
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 03:05:55
RE: Plugin Template/Framework - by Carlos - 2014-03-19, 03:54:16
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 03:07:29
RE: Plugin Template/Framework - by Angryboy - 2014-03-19, 03:42:43
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 04:00:00
RE: Plugin Template/Framework - by Angryboy - 2014-03-19, 04:15:53
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 04:28:59
RE: Plugin Template/Framework - by Angryboy - 2014-03-19, 05:30:00
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 06:21:43
RE: Plugin Template/Framework - by shawn_a - 2014-03-19, 07:18:20
RE: Plugin Template/Framework - by Angryboy - 2014-03-19, 09:20:34
RE: Plugin Template/Framework - by Angryboy - 2014-03-20, 22:03:09



Users browsing this thread: 1 Guest(s)