/** * Obtain a refernece to the active upgrade handler */ static public function instance() { if (! self::$instance) { // FIXME auto-generate self::$instance = new CRM_Olarkchat_Upgrader( 'biz.jmaconsulting.olarkchat', realpath(__DIR__ .'/../../../') ); } return self::$instance; }
function _olarkchat_civix_upgrader() { if (!file_exists(__DIR__.'/CRM/Olarkchat/Upgrader.php')) { return NULL; } else { return CRM_Olarkchat_Upgrader_Base::instance(); } }