Creating Installation Code for new plugins

Every framework has a different packaging mechanism & file layout for installing new code. Whatever it takes to get this plugin installed can be done, but the following things need to be done for the plugin to work as advertised:

  • Database Creation (note that TABLE_PREFIX is set up within pw-config.php):
    • ${TABLE_PREFIX}infocard_identities - this holds card information
    • ${TABLE_PREFIX}infocard_audit - this holds the audit logs
    • ${TABLE_PREFIX}infocard_options -- this holds options such as the private key, debug settings, selector trigger preferences, etc)
  • Setting of any API hooks necessary for operation of the plugin
  • Creation/Placement of any files
  • Registration/Activation within the framework