Jump to content

Suggestion: Access to ipsclass in custom module for subscriptions


Guest FunnyDingo

Recommended Posts

Hello together,

I coded a 'custom module for subscription' (wich can be include while adding an new subscription package in the field 'Run custom module on subscription start/end?'). In my case I needed access to the database and I think a nice way would be $ipsclass->DB. Sadly there is no instance of the $ipsclass-Object.

My workaround is, to modify the source/handlers/han_paysubscriptions.php and adding a

$this->customsubs->ipsclass = &$this->ipsclass;

direct after

$this->customsubs = new customsubs();

In this case all subs need a

var $ipsclass;

after

class customsubs {

otherwise PHP could throw an error (if I remember correctly, it depends on the error settings).

I think it would be advantage, if this would be the default.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...