使用joomla插件文件中的函数(Using a function from joomla plugin file)
正如我的问题所述,我如何使用外部php文件中的joomla插件文件夹内的功能?
确切地说,它是在这个补丁“/plugins/system/rsfppayment/rsfppayment.php”下,我想使用函数rsfp_afterConfirmPayment()。 我粘贴了下面的代码片段,这个文件来自rsForm Pro Paypal支付插件。
// no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); /** * RSForm! Pro Payment Plugin */ class plgSystemRSFPPayment extends JPlugin { function rsfp_afterConfirmPayment($SubmissionId) { RSFormProHelper::sendSubmissionEmails($SubmissionId); } }
As stated in my question, how can i use the function which is inside joomla plugin folder from an external php file?
To be exact, it is under this patch "/plugins/system/rsfppayment/rsfppayment.php" and I want to use the function rsfp_afterConfirmPayment(). I pasted the code snippet below and this file is from rsForm Pro Paypal payment plugin.
// no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); /** * RSForm! Pro Payment Plugin */ class plgSystemRSFPPayment extends JPlugin { function rsfp_afterConfirmPayment($SubmissionId) { RSFormProHelper::sendSubmissionEmails($SubmissionId); } }
原文:https://stackoverflow.com/questions/37253156
更新时间:2022-06-21 21:06