Plugins

Development related discussion.
User avatar
arturo182
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am
Contact:

Re: Plugins

Post by arturo182 » Mon Jul 30, 2012 8:18 pm

Another hook request:

system\views\default\users\usercp.php lines 25 and 38
Last edited by arturo182 on Mon Jul 30, 2012 8:19 pm, edited 1 time in total.
Traq, yo!

User avatar
arturo182
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am
Contact:

Re: Plugins

Post by arturo182 » Thu Sep 06, 2012 3:21 am

And another reqs:



system/views/default/projectsettings/_nav.php: 9

system/views/default/projectsettings/options/_form.php: end



I require adding my own models for plugins.



Is there a way to add properties to already existing models? model::__construct only provides the name, it could provide a pointer to the created model but the properties are protected so it would be impossible to edit them. Why can't the model just get the columns info from the table it's bound to? That would make things easier.



As you can see, I have something big coming ;)
Last edited by arturo182 on Thu Sep 06, 2012 4:39 am, edited 1 time in total.
Traq, yo!

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Plugins

Post by Jack » Thu Sep 06, 2012 11:55 pm

Plugins should now be able to add to model properties as well as access the model object.



I know it's annoying having to define table columns, it was something that is needed for the current model/orm design.



I have plans for the model/orm that will remove that requirement, well actually it's not entirely required right now, only to ensure stability.



But this rewrite would require a lot of changes to Traq and will be done in 4.0.



And trust me when I say 4.0 is not far off, by that I mean Traq 3.0 -> 3.1 -> 4.0.



Traq 4.0 is, well, not a rewrite, but sort of is. It's a framework upgrade to the PHP 5.4 framework I've started.



This framework is actually already started working it's way into Traq. That's where Avalon's autoloader came from.

User avatar
arturo182
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am
Contact:

Re: Plugins

Post by arturo182 » Fri Sep 07, 2012 12:21 am

Hope it will have backward compability so I won't have to rewrite my plugins.
Traq, yo!

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Plugins

Post by Jack » Fri Sep 07, 2012 1:10 pm

Model related stuff has been split into a new post: Model system changes.

User avatar
arturo182
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am
Contact:

Re: Plugins

Post by arturo182 » Mon Sep 17, 2012 9:29 pm

system/views/default/users/view.php:22
Traq, yo!

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Plugins

Post by Jack » Fri Sep 21, 2012 9:18 am

Plugins now use namespaces.

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Plugins

Post by Jack » Fri Nov 30, 2012 2:38 am

Just an update about how plugins should be named.



The directory and file should be named "my_plugin_name" while the class should be named "MyPluginName".



This change keeps things consistent with the rest of Traq.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest