You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update activate/deactivate/upgrade functions to use Capsule #2
Per the docs, WHMCS has deprecated SQL helpers. However, I keep seeing code created / updated from WHMCS that still uses them. Is there an idea on when those helper functions will be removed?
While they are deprecated and we do encourage using Capsule and in particular the Models (http://docs.whmcs.com/classes) wherever possible, we have no plans to remove support for them at this time. You can expect them to be around as long as it is possible to support them.
I have updated the title of this issue to be about updating the sample module to make use of Capsule in place of the SQL Helper functions and we'll use this to track this being completed.
Thanks Matt. As someone that uses / codes against WHMCS all day long and interacts with numerous externally developed plugins, I keep seeing the uses of the SQL helpers perpetuated across the WHMCS ecosystem. I was just fearing that one near release was going to have these helpers pulled.
So, seeing sample code being disseminated from the mothership that used the SQL helpers instead of Capsule was just troubling.
Thanks for letting us they are going to stick around for a bit longer and working on updating the sample code to use the preferred method.
Activity
mattpugh commentedon Jan 20, 2017
While they are deprecated and we do encourage using Capsule and in particular the Models (http://docs.whmcs.com/classes) wherever possible, we have no plans to remove support for them at this time. You can expect them to be around as long as it is possible to support them.
jozephbrasil commentedon Jan 20, 2017
In this case, is suggested to change sample projects to use the new classes instead of old and deprecated examples.
[-]SQL Helpers[/-][+]Update activate/deactivate/upgrade functions to use Capsule[/+]mattpugh commentedon Jan 21, 2017
I have updated the title of this issue to be about updating the sample module to make use of Capsule in place of the SQL Helper functions and we'll use this to track this being completed.
salt-lick commentedon Jan 23, 2017
Thanks Matt. As someone that uses / codes against WHMCS all day long and interacts with numerous externally developed plugins, I keep seeing the uses of the SQL helpers perpetuated across the WHMCS ecosystem. I was just fearing that one near release was going to have these helpers pulled.
So, seeing sample code being disseminated from the mothership that used the SQL helpers instead of Capsule was just troubling.
Thanks for letting us they are going to stick around for a bit longer and working on updating the sample code to use the preferred method.
WHMCSPeter commentedon Jan 7, 2019
This issue has been resolved in PR #11.