-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jeyroik/development
added plugins for installing entities
- Loading branch information
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace extas\components\plugins; | ||
|
||
use extas\components\fields\Field; | ||
use extas\interfaces\fields\IFieldRepository; | ||
|
||
/** | ||
* Class PluginInstallFields | ||
* | ||
* @package extas\components\plugins | ||
* @author jeyroik@gmail.com | ||
*/ | ||
class PluginInstallFields extends PluginInstallDefault | ||
{ | ||
protected string $selfSection = 'fields'; | ||
protected string $selfName = 'field'; | ||
protected string $selfRepositoryClass = IFieldRepository::class; | ||
protected string $selfUID = Field::FIELD__NAME; | ||
protected string $selfItemClass = Field::class; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace extas\components\plugins; | ||
|
||
use extas\components\fields\FieldSample; | ||
use extas\interfaces\fields\IFieldSampleRepository; | ||
|
||
/** | ||
* Class PluginInstallFieldsSamples | ||
* | ||
* @package extas\components\plugins | ||
* @author jeyroik@gmail.com | ||
*/ | ||
class PluginInstallFieldsSamples extends PluginInstallDefault | ||
{ | ||
protected string $selfSection = 'fields_samples'; | ||
protected string $selfName = 'field sample'; | ||
protected string $selfRepositoryClass = IFieldSampleRepository::class; | ||
protected string $selfUID = FieldSample::FIELD__NAME; | ||
protected string $selfItemClass = FieldSample::class; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace extas\components\plugins; | ||
|
||
use extas\components\fields\types\FieldType; | ||
use extas\interfaces\fields\types\IFieldTypeRepository; | ||
|
||
/** | ||
* Class PluginInstallFieldsTypes | ||
* | ||
* @package extas\components\plugins | ||
* @author jeyroik@gmail.com | ||
*/ | ||
class PluginInstallFieldsTypes extends PluginInstallDefault | ||
{ | ||
protected string $selfSection = 'fields_types'; | ||
protected string $selfName = 'field type'; | ||
protected string $selfRepositoryClass = IFieldTypeRepository::class; | ||
protected string $selfUID = FieldType::FIELD__NAME; | ||
protected string $selfItemClass = FieldType::class; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/components/plugins/PluginInstallFieldsTypesSamples.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace extas\components\plugins; | ||
|
||
use extas\components\fields\types\FieldTypeSample; | ||
use extas\interfaces\fields\types\IFieldTypeSampleRepository; | ||
|
||
/** | ||
* Class PluginInstallFieldsTypesSamples | ||
* | ||
* @package extas\components\plugins | ||
* @author jeyroik@gmail.com | ||
*/ | ||
class PluginInstallFieldsTypesSamples extends PluginInstallDefault | ||
{ | ||
protected string $selfSection = 'fields_types_samples'; | ||
protected string $selfName = 'field type sample'; | ||
protected string $selfRepositoryClass = IFieldTypeSampleRepository::class; | ||
protected string $selfUID = FieldTypeSample::FIELD__NAME; | ||
protected string $selfItemClass = FieldTypeSample::class; | ||
} |