Skip to content

Commit

Permalink
Initial GitHub commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roverwolf committed Oct 31, 2016
0 parents commit c921586
Show file tree
Hide file tree
Showing 321 changed files with 29,598 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
@@ -0,0 +1,3 @@
{
"directory": "vendor/bower_components/"
}
73 changes: 73 additions & 0 deletions .gitignore
@@ -0,0 +1,73 @@
/app/config/parameters.yml
/build/*
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/

/web/bundles/*
!web/bundles/.gitkeep

# Docker
docker/.blackfire.env
docker/blackfire.env
docker/.env
docker/data/*
!docker/data/.gitignore

# Builds
/web/build/*

# Generated by gulp build
/app/Resources/assets/rev-manifest.json

# Added by npm
/node_modules/*

# Generated by gulp build
/web/css/*
!web/css/.gitkeep
/web/fonts/*
!web/fonts/.gitkeep
/web/img/*
!web/img/.gitkeep
/web/js/*
!web/js/.gitkeep

#Temporary files
.*.sw?
~*
*~
tmp
*,bak*

# OS specific temporary files
.DS_Store*
.AppleDouble
ehthumbs.db
Thumbs.db

# IDEs
.buildpath
.idea
.project
.settings
.vscode
*.esproj
*.komodoproject
*.komodotools
nbproject

# Tools
.svn
.sass-cache

4 changes: 4 additions & 0 deletions LICENSE
@@ -0,0 +1,4 @@
Copyright 2016 by Public Consulting Group

The code contained in this project is proprietary and owned by Public
Consulting Group. Unauthorized use is forbidden
10 changes: 10 additions & 0 deletions README.md
@@ -0,0 +1,10 @@
Standards Alignment Tool
========================


Overview
--------

This is a prototype for testing the IMS Global Competency Task Force
specification (that is currently under development) and proving its use
in real-world scenarios based on various proof of concept and pilot projects.
7 changes: 7 additions & 0 deletions app/.htaccess
@@ -0,0 +1,7 @@
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
7 changes: 7 additions & 0 deletions app/AppCache.php
@@ -0,0 +1,7 @@
<?php

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

class AppCache extends HttpCache
{
}
73 changes: 73 additions & 0 deletions app/AppKernel.php
@@ -0,0 +1,73 @@
<?php
umask(0); // TODO: This should probably be in the constructor

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),

new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),

new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new JMS\AopBundle\JMSAopBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),

new Tetranz\Select2EntityBundle\TetranzSelect2EntityBundle(),

new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),

new Nelmio\SecurityBundle\NelmioSecurityBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),

new CftfBundle\CftfBundle(),
new Cftf\AsnBundle\CftfAsnBundle(),
new Cftf\ImsBundle\CftfImsBundle(),
new Cftf\SbacBundle\CftfSbacBundle(),
new Cftf\CmsBundle\CftfCmsBundle(),
new Cftf\UtilBundle\CftfUtilBundle(),
];

if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}

return $bundles;
}

public function getRootDir()
{
return __DIR__;
}

public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}

public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
52 changes: 52 additions & 0 deletions app/DoctrineMigrations/Version20160705235303.php
@@ -0,0 +1,52 @@
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160705235303 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('CREATE TABLE ls_item (id INT AUTO_INCREMENT NOT NULL, ls_doc_id INT DEFAULT NULL, uri VARCHAR(300) NOT NULL, ls_doc_uri VARCHAR(300) NOT NULL, human_coding_scheme VARCHAR(50) DEFAULT NULL, global_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', list_enum_in_source VARCHAR(5) DEFAULT NULL, full_statement LONGTEXT NOT NULL, abbreviated_statement VARCHAR(50) DEFAULT NULL, concept_keywords VARCHAR(300) DEFAULT NULL, concept_keywords_uri VARCHAR(300) DEFAULT NULL, notes LONGTEXT DEFAULT NULL, language_uri VARCHAR(300) DEFAULT NULL, educational_alignment VARCHAR(300) DEFAULT NULL, type VARCHAR(60) DEFAULT NULL, licence_uri VARCHAR(300) DEFAULT NULL, source_ls_item_uri VARCHAR(300) DEFAULT NULL, exemplar_resource_uri VARCHAR(300) DEFAULT NULL, changed_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_D8D02498841CB121 (uri), INDEX IDX_D8D024989388802C (ls_doc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
$this->addSql('CREATE TABLE ls_item_ls_item_child (parent_id INT NOT NULL, child_id INT NOT NULL, INDEX IDX_2B1EE8A9727ACA70 (parent_id), INDEX IDX_2B1EE8A9DD62C21B (child_id), PRIMARY KEY(parent_id, child_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
$this->addSql('CREATE TABLE ls_doc (id INT AUTO_INCREMENT NOT NULL, uri VARCHAR(300) NOT NULL, global_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', official_uri VARCHAR(300) DEFAULT NULL, creator VARCHAR(300) NOT NULL, publisher VARCHAR(50) DEFAULT NULL, title VARCHAR(120) NOT NULL, version VARCHAR(50) DEFAULT NULL, description VARCHAR(300) DEFAULT NULL, subject VARCHAR(50) DEFAULT NULL, subject_uri VARCHAR(300) DEFAULT NULL, language_uri VARCHAR(300) DEFAULT NULL, adoption_status VARCHAR(50) DEFAULT NULL, status_start DATE DEFAULT NULL, status_end DATE DEFAULT NULL, note LONGTEXT DEFAULT NULL, UNIQUE INDEX UNIQ_9AE8CF1F841CB121 (uri), UNIQUE INDEX UNIQ_9AE8CF1F2D2FD50E (global_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
$this->addSql('CREATE TABLE ls_doc_ls_item_top_item (ls_doc_id INT NOT NULL, ls_item_id INT NOT NULL, INDEX IDX_B85A54D99388802C (ls_doc_id), UNIQUE INDEX UNIQ_B85A54D9E27A1FD2 (ls_item_id), PRIMARY KEY(ls_doc_id, ls_item_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
$this->addSql('CREATE TABLE ls_association (id INT AUTO_INCREMENT NOT NULL, uri VARCHAR(300) NOT NULL, weight NUMERIC(5, 2) DEFAULT NULL, origin_node_uri VARCHAR(300) NOT NULL, destination_node_uri VARCHAR(300) NOT NULL, type VARCHAR(300) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
$this->addSql('ALTER TABLE ls_item ADD CONSTRAINT FK_D8D024989388802C FOREIGN KEY (ls_doc_id) REFERENCES ls_doc (id)');
$this->addSql('ALTER TABLE ls_item_ls_item_child ADD CONSTRAINT FK_2B1EE8A9727ACA70 FOREIGN KEY (parent_id) REFERENCES ls_item (id)');
$this->addSql('ALTER TABLE ls_item_ls_item_child ADD CONSTRAINT FK_2B1EE8A9DD62C21B FOREIGN KEY (child_id) REFERENCES ls_item (id)');
$this->addSql('ALTER TABLE ls_doc_ls_item_top_item ADD CONSTRAINT FK_B85A54D99388802C FOREIGN KEY (ls_doc_id) REFERENCES ls_doc (id)');
$this->addSql('ALTER TABLE ls_doc_ls_item_top_item ADD CONSTRAINT FK_B85A54D9E27A1FD2 FOREIGN KEY (ls_item_id) REFERENCES ls_item (id)');
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE ls_item_ls_item_child DROP FOREIGN KEY FK_2B1EE8A9727ACA70');
$this->addSql('ALTER TABLE ls_item_ls_item_child DROP FOREIGN KEY FK_2B1EE8A9DD62C21B');
$this->addSql('ALTER TABLE ls_doc_ls_item_top_item DROP FOREIGN KEY FK_B85A54D9E27A1FD2');
$this->addSql('ALTER TABLE ls_item DROP FOREIGN KEY FK_D8D024989388802C');
$this->addSql('ALTER TABLE ls_doc_ls_item_top_item DROP FOREIGN KEY FK_B85A54D99388802C');
$this->addSql('DROP TABLE ls_item');
$this->addSql('DROP TABLE ls_item_ls_item_child');
$this->addSql('DROP TABLE ls_doc');
$this->addSql('DROP TABLE ls_doc_ls_item_top_item');
$this->addSql('DROP TABLE ls_association');
}
}
47 changes: 47 additions & 0 deletions app/DoctrineMigrations/Version20160715210821.php
@@ -0,0 +1,47 @@
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160715210821 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('
ALTER TABLE ls_item
ADD updated_at DATETIME NOT NULL DEFAULT NOW() ON UPDATE NOW()
');
$this->addSql('
ALTER TABLE ls_doc
ADD updated_at DATETIME NOT NULL DEFAULT NOW() ON UPDATE NOW()
');
$this->addSql('
ALTER TABLE ls_association
ADD updated_at DATETIME NOT NULL DEFAULT NOW() ON UPDATE NOW()
');
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE ls_doc DROP updated_at');
$this->addSql('ALTER TABLE ls_item DROP updated_at');
$this->addSql('ALTER TABLE ls_association DROP updated_at');
}
}
64 changes: 64 additions & 0 deletions app/DoctrineMigrations/Version20160719225459.php
@@ -0,0 +1,64 @@
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160719225459 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('
ALTER TABLE ls_association
ADD origin_lsdoc_id INT DEFAULT NULL AFTER origin_node_uri,
ADD origin_lsitem_id INT DEFAULT NULL AFTER origin_lsdoc_id,
ADD destination_lsdoc_id INT DEFAULT NULL AFTER destination_node_uri,
ADD destination_lsitem_id INT DEFAULT NULL AFTER destination_lsdoc_id,
CHANGE type type VARCHAR(50) NOT NULL COLLATE utf8_unicode_ci
');
$this->addSql('ALTER TABLE ls_association ADD CONSTRAINT FK_A84022D434C423C4 FOREIGN KEY (origin_lsdoc_id) REFERENCES ls_doc (id)');
$this->addSql('ALTER TABLE ls_association ADD CONSTRAINT FK_A84022D44C0C393B FOREIGN KEY (origin_lsitem_id) REFERENCES ls_item (id)');
$this->addSql('ALTER TABLE ls_association ADD CONSTRAINT FK_A84022D459C28905 FOREIGN KEY (destination_lsdoc_id) REFERENCES ls_doc (id)');
$this->addSql('ALTER TABLE ls_association ADD CONSTRAINT FK_A84022D4A002CDB7 FOREIGN KEY (destination_lsitem_id) REFERENCES ls_item (id)');
$this->addSql('CREATE INDEX IDX_A84022D434C423C4 ON ls_association (origin_lsdoc_id)');
$this->addSql('CREATE INDEX IDX_A84022D44C0C393B ON ls_association (origin_lsitem_id)');
$this->addSql('CREATE INDEX IDX_A84022D459C28905 ON ls_association (destination_lsdoc_id)');
$this->addSql('CREATE INDEX IDX_A84022D4A002CDB7 ON ls_association (destination_lsitem_id)');
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE ls_association DROP FOREIGN KEY FK_A84022D434C423C4');
$this->addSql('ALTER TABLE ls_association DROP FOREIGN KEY FK_A84022D44C0C393B');
$this->addSql('ALTER TABLE ls_association DROP FOREIGN KEY FK_A84022D459C28905');
$this->addSql('ALTER TABLE ls_association DROP FOREIGN KEY FK_A84022D4A002CDB7');
$this->addSql('DROP INDEX IDX_A84022D434C423C4 ON ls_association');
$this->addSql('DROP INDEX IDX_A84022D44C0C393B ON ls_association');
$this->addSql('DROP INDEX IDX_A84022D459C28905 ON ls_association');
$this->addSql('DROP INDEX IDX_A84022D4A002CDB7 ON ls_association');
$this->addSql('
ALTER TABLE ls_association
DROP origin_lsdoc_id,
DROP origin_lsitem_id,
DROP destination_lsdoc_id,
DROP destination_lsitem_id,
CHANGE type type VARCHAR(300) NOT NULL COLLATE utf8_unicode_ci
');
}
}
46 changes: 46 additions & 0 deletions app/DoctrineMigrations/Version20160720143502.php
@@ -0,0 +1,46 @@
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160720143502 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('
ALTER TABLE ls_association
ADD ls_doc_uri VARCHAR(300) NULL AFTER uri,
ADD ls_doc_id INT DEFAULT NULL AFTER ls_doc_uri
');
$this->addSql('ALTER TABLE ls_association ADD CONSTRAINT FK_A84022D49388802C FOREIGN KEY (ls_doc_id) REFERENCES ls_doc (id)');
$this->addSql('CREATE INDEX IDX_A84022D49388802C ON ls_association (ls_doc_id)');
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE ls_association DROP FOREIGN KEY FK_A84022D49388802C');
$this->addSql('DROP INDEX IDX_A84022D49388802C ON ls_association');
$this->addSql('
ALTER TABLE ls_association
DROP ls_doc_uri,
DROP ls_doc_id
');
}
}

0 comments on commit c921586

Please sign in to comment.