Пример #1
0
 /**
  * Obtain a refernece to the active upgrade handler
  */
 public static function instance()
 {
     if (!self::$instance) {
         // FIXME auto-generate
         self::$instance = new CRM_iATS_Upgrader('com.iatspayments.civicrm', realpath(__DIR__ . '/../../../'));
     }
     return self::$instance;
 }
/**
 * @return CRM_iATS_Upgrader
 */
function _iats_civix_upgrader()
{
    if (!file_exists(__DIR__ . '/CRM/iATS/Upgrader.php')) {
        return NULL;
    } else {
        return CRM_iATS_Upgrader_Base::instance();
    }
}