Пример #1
0
 /**
  * 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;
 }
Пример #2
0
function _olarkchat_civix_upgrader() {
  if (!file_exists(__DIR__.'/CRM/Olarkchat/Upgrader.php')) {
    return NULL;
  } else {
    return CRM_Olarkchat_Upgrader_Base::instance();
  }
}