An open API service indexing awesome lists of open source software.

https://github.com/kewljuice/be.ctrl.uit

Everything functionally related to migration UiT events to CiviCRM
https://github.com/kewljuice/be.ctrl.uit

civicrm civicrm-extensions

Last synced: about 2 months ago
JSON representation

Everything functionally related to migration UiT events to CiviCRM

Awesome Lists containing this project

README

        

# be.ctrl.uit

## Introduction
CiviCRM UiT extension: Everything functionally related to UiT migration.

## Installation
- You can directly clone to your CiviCRM extension directory using

```$ git clone https://github.com/kewljuice/be.ctrl.uit.git```

- You can also download a zip file, and extract in your extension directory

```$ git clone https://github.com/kewljuice/be.ctrl.uit/archive/master.zip```

- Configure CiviCRM Extensions Directory which can be done from

```"Administer -> System Settings -> Directories".```

- Configure Extension Resource URL which can be done from

```"Administer -> System Settings -> Resource URLs".```

- The next step is enabling the extension which can be done from

```"Administer -> System Settings -> Manage CiviCRM Extensions".```

## Requirements

- PHP v7.0+
- CiviCRM 5.0

## Configuration

- Manage settings: **yoursite.org/civicrm/uit/settings**.
- Manage config: **yoursite.org/civicrm/uit/config**.

## Endpoints

### UitMigrate: status

```
$result = civicrm_api3('UitMigrate', 'status', array(
'UitType' => "events",
));
```

### UitMigrate: import

```
$result = civicrm_api3('UitMigrate', 'import', array(
'UitType' => "events",
));
```

## Custom hook

```
/**
* Implements hook_civicrm_uit().
*/
function uit_civicrm_uit($op, $objectName, $id, &$params) {
// https://forum.civicrm.org/index.php%3Ftopic=29999.0.html
print("action: " . $op . '
');
print("entity: " . $objectName . '
');
print("entity id: " . $id . '
');
print("object: " . print_r($params, TRUE) . '
');

}
```