Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ public/wp-content/themes/twentytwentyone/package-lock.json

**/.DS_Store
public/wp-content/plugins/ccs-custom/library/user-activity-log.txt

public/wp-content/plugins/ccs-mdm/vendor
22 changes: 22 additions & 0 deletions public/wp-content/plugins/ccs-mdm/ccs-mdm-import.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* Plugin Name: CCS MDM Importer
* Description: Imports required objects from MDM API into Wordpress
* Author: Chee Ng
* Text Domain: ccs-dmd-import
* Version: 1.0
*/

// Abort if this file is called directly.
if ( ! defined( 'ABSPATH' ) ) exit;

// Load WP-CLI commands if running from WP-CLI.
if ( defined('WP_CLI') && WP_CLI ) {
require __DIR__ . '/includes/cli-commands.php';
require __DIR__ . '/includes/SyncText.php';
require __DIR__ . '/includes/dbManager.php';
}

// Register activation and deactivation hooks
register_activation_hook(__FILE__, array('PluginCore', 'activate'));
register_deactivation_hook(__FILE__, array('PluginCore', 'deactivate'));
13 changes: 13 additions & 0 deletions public/wp-content/plugins/ccs-mdm/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "ccs/mdm",
"authors": [
{
"name": "Chee Ng",
"email": "chee.ng@crowncommercial.gov.uk"
}
],
"require-dev": {
"phpunit/phpunit": "^11.5",
"mockery/mockery": "^1.6"
}
}
Loading
Loading