That´s itoliverde8 wrote:did you set the labels width? if the label isn't wide a not TM will cut it automatically

Thank you, Jojo
Moderator: NADEO
That´s itoliverde8 wrote:did you set the labels width? if the label isn't wide a not TM will cut it automatically
Hey, well the thing is:oliverde8 wrote:Hi,
As you may know I am making a Menu at the moment, I have some problems.
In my configuration fileI have parameters as plugin="Flo\Profiler" function="showStats"
I then try to call them using callMyPublicMethod of course as the function isn't set as a Public method using setPublicMethod I can't call it.
I wondered how can I call a public function that hasn't have been set as Public.
The solution would have been to get acces to the Object of the plugin but that to I didn't find.
Thanks
I seeaseco wrote:Hey, well the thing is:oliverde8 wrote:Hi,
As you may know I am making a Menu at the moment, I have some problems.
In my configuration fileI have parameters as plugin="Flo\Profiler" function="showStats"
I then try to call them using callMyPublicMethod of course as the function isn't set as a Public method using setPublicMethod I can't call it.
I wondered how can I call a public function that hasn't have been set as Public.
The solution would have been to get acces to the Object of the plugin but that to I didn't find.
Thanks
if you would not have to make a method public to be callable from outside of a plugin, then you wouln't need the public-thingy at all
So there is no way to access the plugin in any other than calling a public method of it.
I get your point and in fact I am thinking about the whole public story ... For the moment there is no solution to your problem. Either I can make the method public - if you wish - or there need to be changes on the general system in the future. But I can't make any promises ...
Hi Jojo,Jojo_44 wrote:Hi,
short question. Why do you use mysql instead of mysqli ? mysqli is faster and it is standard since php 5.3. I can´t use manialive in public because i store all recs, my database is ca. 6 GB, and without mysqli it runs very slowly.
regards, Jojo
I think there is a getPlugin method already in the PluginHandler, but it is protected against access from outside. This whole encapsulation is done by purpose. The public methods have been implemented to be able to differentiate between methods that can be called by ManiaLive from those who can be invoked by other plugins.It's a feature I wouldn't like to drop very much, which is why I prefer to have public methods within every plugin. I try to make it clear for all authors to have public methods and also to use them myselfoliverde8 wrote:I seeaseco wrote:Hey, well the thing is:oliverde8 wrote:Hi,
As you may know I am making a Menu at the moment, I have some problems.
In my configuration fileI have parameters as plugin="Flo\Profiler" function="showStats"
I then try to call them using callMyPublicMethod of course as the function isn't set as a Public method using setPublicMethod I can't call it.
I wondered how can I call a public function that hasn't have been set as Public.
The solution would have been to get acces to the Object of the plugin but that to I didn't find.
Thanks
if you would not have to make a method public to be callable from outside of a plugin, then you wouln't need the public-thingy at all
So there is no way to access the plugin in any other than calling a public method of it.
I get your point and in fact I am thinking about the whole public story ... For the moment there is no solution to your problem. Either I can make the method public - if you wish - or there need to be changes on the general system in the future. But I can't make any promises ...![]()
A solution might be to make every function of a chat command public automatically? that is the simpliest but maybe not the correct solution.
I have looked the code and I think that adding a getplugin method to Plugin shouldn't be a problem. Then is it a good idea? I don't really think it is a problem to have access to other plugins object in a plugin.![]()
I think that yoy making the method public isn't a solution. You will also need to do it for dedimania and your Admin olugin. If everyone that makes a plugin needs to make manually every of their chat functions it would be long, and there would be no guarantee that a plugin maker didn't forgot it.
What is nice with my menu is that usally you can make it do anything you want from the config. But after all you can't
Ok thank you for the answer. I will think about it to write it myself. I did some "speedchecks" with my aseco database and mysqli is more than 5-times faster than mysql. With a lot of data it´s more faster.aseco wrote:Hi Jojo,
currently we haven't planned to write a ManiaLive driver based on mysqli, but if you want to do so we will be happy to include it into the ManiaLive project. The problem is, that we can't provide an interface for every database available. We've used mysql because it was already available from the ManiaLib project which was < 5.3.
Users browsing this forum: No registered users and 0 guests