Jump to content

v4 Changelog for Developers on Plugin System


Adam

Recommended Posts

Hello,

We literally just finished our development of the Cerb helpdesk plugin that would allow Blesta clients to use Cerb instead of the default helpdesk with Blesta. Now we noticed that v4 is out (congratulations).

Is there a write up somewhere, for developers, on what changed when creating a custom plugin? What functions depreciated? New features added? etc.

We have not tried our new plugin on a v4 system yet, but I suspect we will start that process soon.

 

Thanks,
-Adam

P.S. For those wondering, we plan on releasing the Cerb plugin, free of charge, to the rest of the Blesta community. No ETA yet.

Link to comment
Share on other sites

Your plugin should work with v4, but you may want to update the buttons to use the new Bootstrap buttons introduced in the UI for v4. Usually we have a developer blog post, or include information in the release notes for the beta about any developer related considerations. Nothing major was changed besides the increase in minimum PHP requirements to 5.4 in terms of plugins.

Very glad to hear about Cerb! If you have a developer license, you can log in and list it on the marketplace.

Link to comment
Share on other sites

On 3/31/2017 at 1:44 PM, Paul said:

Your plugin should work with v4, but you may want to update the buttons to use the new Bootstrap buttons introduced in the UI for v4. Usually we have a developer blog post, or include information in the release notes for the beta about any developer related considerations. Nothing major was changed besides the increase in minimum PHP requirements to 5.4 in terms of plugins.

Very glad to hear about Cerb! If you have a developer license, you can log in and list it on the marketplace.

 

Thanks Paul. For the most part everything seems to work. Few issues on our end that I am cleaning up.

Is http://source-docs.blesta.com/ up to date? I am assuming it would not matter, as you mentioned not a lot things changed internally to the method signatures? Would be great if you could include a timestamp of when the page was created/generated within source-docs.

Thanks,
-Adam

Link to comment
Share on other sites

23 minutes ago, Adam said:

 

Thanks Paul. For the most part everything seems to work. Few issues on our end that I am cleaning up.

Is http://source-docs.blesta.com/ up to date? I am assuming it would not matter, as you mentioned not a lot things changed internally to the method signatures? Would be great if you could include a timestamp of when the page was created/generated within source-docs.

Thanks,
-Adam

It gets updated every time they release a version mate.

Link to comment
Share on other sites

On 3/31/2017 at 9:44 PM, Paul said:

Your plugin should work with v4, but you may want to update the buttons to use the new Bootstrap buttons introduced in the UI for v4. Usually we have a developer blog post, or include information in the release notes for the beta about any developer related considerations. Nothing major was changed besides the increase in minimum PHP requirements to 5.4 in terms of plugins.

Very glad to hear about Cerb! If you have a developer license, you can log in and list it on the marketplace.

the market place return error when we want to add new item

The upload path could not be created.

Link to comment
Share on other sites

3 hours ago, Paul said:

It was not up to date with v4.0 no, I have updated it just now. http://source-docs.blesta.com and the old docs for 3.6 are archived here http://source-docs.blesta.com/3.6/ 

Does not appear to be working (v4):

http://source-docs.blesta.com/class-Record.html

as an example.

3.6 still works.

-Adam

Link to comment
Share on other sites

16 hours ago, Blesta Addons said:

the market place return error when we want to add new item

The upload path could not be created.

Wow, disk full. I'm beginning to hate CSF/LFD, it spams itself with email and fills up the disk. Give it a few minutes, and it should work again.

14 hours ago, Adam said:

Does not appear to be working (v4):

http://source-docs.blesta.com/class-Record.html

as an example.

3.6 still works.

-Adam

The new source docs look a bit off, I'll have to check into that.

Link to comment
Share on other sites

On 4/4/2017 at 9:22 AM, Paul said:

Wow, disk full. I'm beginning to hate CSF/LFD, it spams itself with email and fills up the disk. Give it a few minutes, and it should work again.

The new source docs look a bit off, I'll have to check into that.

FYI: The new 4.0 source docs still appear to be missing all the minphp classes (Record, etc.)

-Adam

Link to comment
Share on other sites

1 hour ago, Tyson said:

Source docs don't include vendor code, so minPHP classes like Record wouldn't be apart of the list.

But the 3.6 docs did. http://source-docs.blesta.com/3.6/

 

Since minPHP framework does not have public documentation of its own, this was the only docs. May you please add back that functionality? Otherwise, grep'ing around in the source code to figure out what parameters a function takes is a pain.

-Adam

Link to comment
Share on other sites

16 minutes ago, turner2f said:

Hello Adam,

 

Sure hope you get the assistance you need.

Checked out CERB, and it looks fantastic. 

And it's got all the functions we all need too.

 

Will be happy to stress-test your plugin when ready.

Great! Glad to hear. Please vote for https://requests.blesta.com/topic/pull-request-client-and-contact-create-update-and-delete-callbacks This is one requirement to make sure that Blesta and Cerb are sync when it comes to multi company support.

Still have not heard back from the anyone at Blesta on the requests page or on the forums about this. 

-Adam

Link to comment
Share on other sites

25 minutes ago, Tyson said:

Yes, but Blesta v4 uses a newer version of minPHP that has changed. They can only be included if vendor code is included as well.

Blesta aka Phillips Data is the maker for Blesta and minPHP. Please provide documentation to minPHP. If source-docs.blesta.com is not the right place for minPHP then let everyone one where the new place should be.

 

Link to comment
Share on other sites

I think because we started using namespaces in 4.0, ApiGen organizes everything differently. Most classes are under "None", see http://source-docs.blesta.com/class-Upload.html It's possible some things are still missing, but it's also possible they are just in a different location relative to 3.6 http://source-docs.blesta.com/3.6/class-Upload.html

Link to comment
Share on other sites

  • 3 months later...
5 hours ago, Paul said:

Just FYI, additional events were added in CORE-2364 that were mentioned in this thread for the CERB integration. A complete list of Events can be found at https://docs.blesta.com/display/dev/Event+Handlers New ones as part of this release are designated as "4.1" in the last column, "Since".

this is a great , and still i'm consist that the  most of events is not returning any data to the models exept some event like structure and Emails events, the fact they are only like a notice of creation or deletion, if the event is returning data to the model then we can make them more usable and profit for so many cases . whmxx has this and a lot of feature is added by plugin only wit this behavior .

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...