https://github.com/combodo/combodo-oauth-email-synchro
https://github.com/combodo/combodo-oauth-email-synchro
itop itop-extension itop-module
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/combodo/combodo-oauth-email-synchro
- Owner: Combodo
- Created: 2022-05-10T09:13:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-23T14:00:04.000Z (5 months ago)
- Last Synced: 2025-04-02T13:03:37.119Z (2 months ago)
- Topics: itop, itop-extension, itop-module
- Language: PHP
- Homepage:
- Size: 73.2 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extension OAuth email syncro
You've just created a new iTop extension, congratulations!
## What to do next ?
- Adjust the iTop mininum version (by default iTop 2.6.0) if needed by editing the `version` in the datamodel XML file (``)
- Install this (empty) extension in your iTop using the setup
- Get the [toolkit](https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Adatamodel) and update your iTop (check the option "symbolic links")
- Update your code then refresh the iTop pages to see the magic happen... or not (ah, ah, debug!!)### Autoloader
If you declare some PHP classes in the `src` folder, you'll have to build/update the autoloader with [Composer](https://getcomposer.org). The command line (to be launched from the root directory of your extension) is the following:```
composer update
composer dump-autoload -o
```### Hooks
If you implement some "Hooks" (i.e. classes implementing one of the [Extension APIs](https://www.itophub.io/wiki/page?id=2_7_0%3Acustomization%3Aextensions_api), for example iApplicationExtension), put them in the `src/Hook` folder and add the file `datamodel` section of the `module` file for an explicit inclusion. The same rule applies if you declare some datamodel classes in plain PHP.```
//
'datamodel' => array(
'vendor/autoload.php',
'model.test-extension.php', // contains the PHP code generated from the datamodel.test-extension.xml
'src/Hook/MyHook.php', // Explicit include, hooks cannot benefit from the autoloader
),```