Advertisement:

Author Topic: Plugin dependency check?  (Read 653 times)

0xhiryuu

  • Newbie
  • *
  • Posts: 4
Plugin dependency check?
« on: February 05, 2015, 11:00:35 pm »
Hi, is there any dependency check system in osclass?
I'm writing a payment plugin that extends the "Payment Plugin".
During installation I want to inform users that "Payment Plugin" needs to be installed and activated.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Plugin dependency check?
« Reply #1 on: February 06, 2015, 01:58:31 am »
Please, do not flood the forum with same topic over and over again. One topic is enough.

Thank you

inquam

  • Newbie
  • *
  • Posts: 34
Re: Plugin dependency check?
« Reply #2 on: February 06, 2015, 12:16:08 pm »
I, for personal use, have done this with several plugins. I have plugins that require another plugin to be installed. In that case it performs checks when you try to install if that other plugin is installed or throws an error if it isn't and aborts the installation. If specific parts can run if another plugin is installed you can use the function to check if a plugin is active to encapsulate just that part of code.