Skip to content

Commit

Permalink
adding tree type and tree node type to export; import
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Sep 23, 2022
1 parent faf675e commit 369d9d7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,23 @@ public function createThumbnailTypeDriver()
return $this->app->make(ThumbnailType::class);
}

public function createTreeTypeDriver()
{
return $this->app->make(TreeType::class);
}

public function createTreeNodeTypeDriver()
{
return $this->app->make(TreeNodeType::class);
}

public function __construct($app)
{
parent::__construct($app);
$this->driver('group');
$this->driver('board');
$this->driver('tree_type');
$this->driver('tree_node_type');
$this->driver('board_template');
$this->driver('express_entity');
$this->driver('express_entry');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
use PortlandLabs\Concrete5\MigrationTool\Importer\CIF\Element\Tree;
use PortlandLabs\Concrete5\MigrationTool\Importer\CIF\Element\WorkflowProgressCategory;
use PortlandLabs\Concrete5\MigrationTool\Importer\CIF\Element\WorkflowType;
use PortlandLabs\Concrete5\MigrationTool\Importer\CIF\Element\TreeType;
use PortlandLabs\Concrete5\MigrationTool\Importer\CIF\Element\TreeNodeType;

class Manager
{
Expand All @@ -51,6 +53,8 @@ public function __construct()
{
$this->registerRoutine(new Group());
$this->registerRoutine(new ThumbnailType());
$this->registerRoutine(new TreeType());
$this->registerRoutine(new TreeNodeType());
$this->registerRoutine(new BannedWord());
$this->registerRoutine(new ExpressEntity());
$this->registerRoutine(new SocialLink());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ public function createCreateThumbnailTypesDriver()
return new CreateThumbnailTypesRoutine();
}

public function createCreateTreeTypesDriver()
{
return new CreateTreeTypesRoutine();
}

public function createCreateTreeNodeTypesDriver()
{
return new CreateTreeNodeTypesRoutine();
}

public function createCreateBlockTypeSetsDriver()
{
return new CreateBlockTypeSetsRoutine();
Expand Down Expand Up @@ -237,6 +247,8 @@ public function __construct()
$this->driver('create_trees');
$this->driver('create_social_links');
$this->driver('create_thumbnail_types');
$this->driver('create_tree_types');
$this->driver('create_tree_node_types');
$this->driver('create_jobs');
$this->driver('create_job_sets');
$this->driver('create_page_type_publish_target_types');
Expand Down

0 comments on commit 369d9d7

Please sign in to comment.