*/ | */ | ||||
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\User\User\Module\UserModule; | use common\logic\User\User\Module\UserModule; | ||||
$producerModule = $this->getProducerModule(); | $producerModule = $this->getProducerModule(); |
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\Distribution\Distribution\Module\DistributionModule; | use common\logic\Distribution\Distribution\Module\DistributionModule; | ||||
use common\logic\Distribution\Distribution\Service\ExportManager; | use common\logic\Distribution\Distribution\Service\ExportManager; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Module\FeatureModule; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Feature\Feature\FeatureModule; | |||||
use common\logic\User\User\Module\UserModule; | use common\logic\User\User\Module\UserModule; | ||||
use common\logic\User\UserGroup\Module\UserGroupModule; | use common\logic\User\UserGroup\Module\UserGroupModule; | ||||
use yii\helpers\Html; | use yii\helpers\Html; |
{ | { | ||||
return [ | return [ | ||||
$this->getFeatureModule(), | $this->getFeatureModule(), | ||||
$this->getFeatureProducerModule(), | |||||
$this->getUnitModule(), | $this->getUnitModule(), | ||||
$this->getTaxRateModule(), | $this->getTaxRateModule(), | ||||
$this->getUserUserGroupModule(), | $this->getUserUserGroupModule(), |
use common\logic\Document\Document\Module\DocumentModule; | use common\logic\Document\Document\Module\DocumentModule; | ||||
use common\logic\Document\Invoice\Module\InvoiceModule; | use common\logic\Document\Invoice\Module\InvoiceModule; | ||||
use common\logic\Document\Quotation\Module\QuotationModule; | use common\logic\Document\Quotation\Module\QuotationModule; | ||||
use common\logic\Feature\Feature\Module\FeatureModule; | |||||
use common\logic\Feature\FeatureProducer\Module\FeatureProducerModule; | |||||
use common\logic\Feature\Feature\FeatureModule; | |||||
use common\logic\Opinion\Module\OpinionModule; | use common\logic\Opinion\Module\OpinionModule; | ||||
use common\logic\Order\Order\Module\OrderModule; | use common\logic\Order\Order\Module\OrderModule; | ||||
use common\logic\Order\ProductOrder\Module\ProductOrderModule; | use common\logic\Order\ProductOrder\Module\ProductOrderModule; | ||||
{ | { | ||||
return FeatureModule::getInstance(); | return FeatureModule::getInstance(); | ||||
} | } | ||||
public function getFeatureProducerModule(): FeatureProducerModule | |||||
{ | |||||
return FeatureProducerModule::getInstance(); | |||||
} | |||||
} | } |
use common\logic\AbstractGenerator; | use common\logic\AbstractGenerator; | ||||
use common\logic\Distribution\Distribution\Model\Distribution; | use common\logic\Distribution\Distribution\Model\Distribution; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Service\FeatureChecker; | |||||
use common\logic\Feature\Feature\Service\FeatureManager; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Feature\Feature\FeatureChecker; | |||||
use common\logic\Feature\Feature\FeatureManager; | |||||
use common\logic\Order\Order\Model\Order; | use common\logic\Order\Order\Model\Order; | ||||
use common\logic\Order\Order\Repository\OrderRepository; | use common\logic\Order\Order\Repository\OrderRepository; | ||||
use common\logic\Order\Order\Service\OrderSolver; | use common\logic\Order\Order\Service\OrderSolver; |
* termes. | * termes. | ||||
*/ | */ | ||||
namespace common\logic\Feature\Feature\Model; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||||
use common\logic\Feature\FeatureProducer\FeatureProducer; | |||||
use yii\db\ActiveQuery; | use yii\db\ActiveQuery; | ||||
use yii\db\Schema; | |||||
class Feature extends ActiveRecordCommon | class Feature extends ActiveRecordCommon | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Service; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractBuilder; | use common\logic\AbstractBuilder; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||||
class FeatureBuilder extends AbstractBuilder | class FeatureBuilder extends AbstractBuilder | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Service; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractChecker; | use common\logic\AbstractChecker; | ||||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||||
use common\logic\Feature\FeatureProducer\FeatureProducerRepository; | |||||
use yii\base\ErrorException; | use yii\base\ErrorException; | ||||
class FeatureChecker extends AbstractChecker | class FeatureChecker extends AbstractChecker |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Service; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractDefinition; | use common\logic\AbstractDefinition; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
class FeatureDefinition extends AbstractDefinition | class FeatureDefinition extends AbstractDefinition | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Service; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractManager; | use common\logic\AbstractManager; | ||||
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Service; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractManager; | use common\logic\AbstractManager; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerBuilder; | |||||
use common\logic\Feature\FeatureProducer\FeatureProducerBuilder; | |||||
class FeatureManager extends AbstractManager | class FeatureManager extends AbstractManager | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Module; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractModule; | use common\logic\AbstractModule; | ||||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||||
use common\logic\Feature\Feature\Service\FeatureBuilder; | |||||
use common\logic\Feature\Feature\Service\FeatureChecker; | |||||
use common\logic\Feature\Feature\Service\FeatureDefinition; | |||||
use common\logic\Feature\Feature\Service\FeatureImporter; | |||||
use common\logic\Feature\Feature\Service\FeatureManager; | |||||
class FeatureModule extends AbstractModule | class FeatureModule extends AbstractModule | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Repository; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
class FeatureRepository extends AbstractRepository | class FeatureRepository extends AbstractRepository | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\Feature\Repository; | |||||
namespace common\logic\Feature\Feature; | |||||
use common\logic\AbstractRepositoryQuery; | use common\logic\AbstractRepositoryQuery; | ||||
use common\logic\Feature\Feature\Service\FeatureDefinition; | |||||
class FeatureRepositoryQuery extends AbstractRepositoryQuery | class FeatureRepositoryQuery extends AbstractRepositoryQuery | ||||
{ | { |
* termes. | * termes. | ||||
*/ | */ | ||||
namespace common\logic\Feature\FeatureProducer\Model; | |||||
namespace common\logic\Feature\FeatureProducer; | |||||
use common\components\ActiveRecordCommon; | use common\components\ActiveRecordCommon; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Producer\Producer\Model\Producer; | use common\logic\Producer\Producer\Model\Producer; | ||||
use yii\db\ActiveQuery; | use yii\db\ActiveQuery; | ||||
<?php | <?php | ||||
namespace common\logic\Feature\FeatureProducer\Service; | |||||
namespace common\logic\Feature\FeatureProducer; | |||||
use common\logic\AbstractBuilder; | use common\logic\AbstractBuilder; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||||
use common\logic\Producer\Producer\Model\Producer; | |||||
use common\logic\Feature\Feature\Feature; | |||||
class FeatureProducerBuilder extends AbstractBuilder | class FeatureProducerBuilder extends AbstractBuilder | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\FeatureProducer\Service; | |||||
namespace common\logic\Feature\FeatureProducer; | |||||
use common\logic\AbstractDefinition; | use common\logic\AbstractDefinition; | ||||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||||
class FeatureProducerDefinition extends AbstractDefinition | class FeatureProducerDefinition extends AbstractDefinition | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\FeatureProducer\Repository; | |||||
namespace common\logic\Feature\FeatureProducer; | |||||
use common\logic\AbstractRepository; | use common\logic\AbstractRepository; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Producer\Producer\Model\Producer; | |||||
use common\logic\Feature\Feature\Feature; | |||||
class FeatureProducerRepository extends AbstractRepository | class FeatureProducerRepository extends AbstractRepository | ||||
{ | { |
<?php | <?php | ||||
namespace common\logic\Feature\FeatureProducer\Repository; | |||||
namespace common\logic\Feature\FeatureProducer; | |||||
use common\logic\AbstractRepositoryQuery; | use common\logic\AbstractRepositoryQuery; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerDefinition; | |||||
use common\logic\Feature\Feature\Feature; | |||||
class FeatureProducerRepositoryQuery extends AbstractRepositoryQuery | class FeatureProducerRepositoryQuery extends AbstractRepositoryQuery | ||||
{ | { |
<?php | |||||
namespace common\logic\Feature\FeatureProducer\Module; | |||||
use common\logic\AbstractModule; | |||||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerBuilder; | |||||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerDefinition; | |||||
class FeatureProducerModule extends AbstractModule | |||||
{ | |||||
public function getServices(): array | |||||
{ | |||||
return [ | |||||
FeatureProducerDefinition::class, | |||||
FeatureProducerRepository::class, | |||||
FeatureProducerBuilder::class | |||||
]; | |||||
} | |||||
public function getDefinition(): FeatureProducerDefinition | |||||
{ | |||||
return FeatureProducerDefinition::getInstance(); | |||||
} | |||||
public function getRepository(): FeatureProducerRepository | |||||
{ | |||||
return FeatureProducerRepository::getInstance(); | |||||
} | |||||
public function getBuilder(): FeatureProducerBuilder | |||||
{ | |||||
return FeatureProducerBuilder::getInstance(); | |||||
} | |||||
} |
namespace console\commands; | namespace console\commands; | ||||
use common\logic\Feature\Feature\Module\FeatureModule; | |||||
use common\logic\Feature\Feature\FeatureModule; | |||||
use yii\console\Controller; | use yii\console\Controller; | ||||
class ImportFeaturesController extends Controller | class ImportFeaturesController extends Controller |
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\helpers\MeanPayment; | use common\helpers\MeanPayment; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Payment\Model\Payment; | use common\logic\Payment\Model\Payment; | ||||
use producer\models\CreditForm; | use producer\models\CreditForm; | ||||
use yii\filters\VerbFilter; | use yii\filters\VerbFilter; |
use common\forms\ContactForm; | use common\forms\ContactForm; | ||||
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Product\Product\Model\Product; | use common\logic\Product\Product\Model\Product; | ||||
use yii\data\ActiveDataProvider; | use yii\data\ActiveDataProvider; | ||||
use yii\helpers\Html; | use yii\helpers\Html; |
* termes. | * termes. | ||||
*/ | */ | ||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Module\FeatureModule; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\Feature\Feature\FeatureModule; | |||||
use common\logic\Payment\Module\PaymentModule; | use common\logic\Payment\Module\PaymentModule; | ||||
use yii\grid\GridView; | use yii\grid\GridView; | ||||