From 801861b1f8cf1fe90312bf06ea903eda37791cd0 Mon Sep 17 00:00:00 2001 From: Aster <no_reply@aster.it> Date: Wed, 4 May 2022 18:01:06 +0200 Subject: [PATCH] General Bug Fixes and Improvements --- composer.json | 18 +-- src/AmosNotify.php | 56 +++++---- src/README.md | 28 ++--- src/assets/NotifyAsset.php | 20 ++-- src/assets/web/less/notify.less | 4 +- src/base/Builder.php | 16 +-- src/base/BuilderFactory.php | 38 +++--- src/base/NotifierRepository.php | 26 ++--- src/base/NotifyWidget.php | 10 +- src/base/NotifyWidgetDoNothing.php | 10 +- src/base/builder/AMailBuilder.php | 28 ++--- .../builder/ContactAcceptedMailBuilder.php | 14 +-- .../builder/ContentImmediateMailBuilder.php | 16 +-- src/base/builder/ContentMailBuilder.php | 64 +++++----- src/base/builder/CustomMailBuilder.php | 28 ++--- src/base/builder/NewsletterBuilder.php | 72 ++++++------ src/base/builder/SleepingUserMailBuilder.php | 14 +-- .../builder/SuccessfulContentMailBuilder.php | 20 ++-- .../builder/SuccessfulUserMailBuilder.php | 16 +-- src/base/builder/SuggestedLinkMailBuilder.php | 14 +-- src/base/builder/ValidatedMailBuilder.php | 34 +++--- src/base/builder/ValidatorsMailBuilder.php | 24 ++-- src/behaviors/NotifyBehavior.php | 30 +++-- src/commands/NotifierController.php | 110 +++++++++--------- src/commands/UserNotificationController.php | 92 +++++++-------- src/config/config.php | 10 +- src/controllers/DefaultController.php | 16 +-- src/controllers/NewsletterController.php | 48 ++++---- src/controllers/base/NewsletterController.php | 32 +++-- src/exceptions/NewsletterException.php | 16 +-- src/forms/NewsWidget.php | 14 +-- src/i18n/en-GB/messages.php | 10 +- src/i18n/en-US/messages.php | 10 +- src/i18n/it-IT/messages.php | 10 +- src/listeners/NotifyWorkflowListener.php | 22 ++-- src/migrations/m170209_173549_init_notify.php | 10 +- ...m171126_151749_notification_send_email.php | 10 +- ...27_notification_send_email_permissions.php | 2 +- ...nsert_missing_user_notifications_confs.php | 16 +-- ...0000_add_more_fields_notification_conf.php | 2 +- ...m191017_110000_create_notificationsent.php | 10 +- ...ification_content_language_permissions.php | 2 +- ...ation_language_preferences_permissions.php | 2 +- ..._create_table_newsletter_contents_conf.php | 12 +- ...m200424_181208_create_table_newsletter.php | 12 +- ...84914_create_table_newsletter_contents.php | 12 +- .../m200428_162835_newsletter_permissions.php | 22 ++-- .../m200429_071951_newsletter_widget.php | 20 ++-- ...0504_141348_create_newsletter_workflow.php | 12 +- ...163240_newsletter_workflow_permissions.php | 14 +-- ...22_223813_add_notificationconf_field_1.php | 12 +- ...23_104757_add_notificationconf_field_2.php | 12 +- ...201027_174300_add_notification_field_1.php | 12 +- ...create_table_notification_conf_content.php | 12 +- ..._notification_conf_content_permissions.php | 2 +- ...m201204_120220_fix_newsletter_workflow.php | 12 +- src/models/ChangeStatusEmail.php | 14 +-- src/models/Newsletter.php | 26 ++--- src/models/NewsletterContents.php | 22 ++-- src/models/NewsletterContentsConf.php | 20 ++-- src/models/Notification.php | 18 ++- src/models/NotificationChannels.php | 18 ++- src/models/NotificationConf.php | 22 ++-- src/models/NotificationConfContent.php | 5 +- src/models/NotificationContentLanguage.php | 5 +- .../NotificationLanguagePreferences.php | 5 +- src/models/NotificationSendEmail.php | 5 +- src/models/NotificationconfNetwork.php | 5 +- src/models/NotificationsConfOpt.php | 16 +-- src/models/NotificationsRead.php | 15 +-- src/models/NotificationsSent.php | 15 +-- src/models/base/Newsletter.php | 20 ++-- src/models/base/NewsletterContents.php | 24 ++-- src/models/base/NewsletterContentsConf.php | 20 ++-- src/models/base/NotificationConfContent.php | 12 +- .../base/NotificationContentLanguage.php | 8 +- .../base/NotificationLanguagePreferences.php | 8 +- src/models/base/NotificationSendEmail.php | 4 +- src/models/base/NotificationconfNetwork.php | 16 +-- src/models/search/NewsletterSearch.php | 24 ++-- src/record/NotifyAuditRecord.php | 12 +- src/record/NotifyRecord.php | 22 ++-- src/record/NotifyRecordInterface.php | 14 +-- src/rules/DeleteOwnNewsletterRule.php | 14 +-- src/rules/OwnNewsletterRule.php | 18 ++- src/rules/UpdateOwnNewsletterRule.php | 14 +-- src/utility/NewsletterUtility.php | 30 +++-- src/utility/NotifyUtility.php | 62 +++++----- src/views/default/index.php | 22 ++-- src/views/email/content.php | 24 ++-- src/views/email/content_comment.php | 2 +- src/views/email/content_footer.php | 16 +-- src/views/email/content_header.php | 12 +- src/views/email/content_howmany.php | 10 +- .../email/content_immediate_email_header.php | 12 +- src/views/email/content_list.php | 26 ++--- src/views/email/content_list_network.php | 26 ++--- src/views/email/content_section_title.php | 12 +- src/views/email/content_title.php | 12 +- src/views/email/content_title_network.php | 14 +-- .../item_and_card_header_widget_mail.php | 16 +-- src/views/email/legacy_content.php | 26 ++--- src/views/email/legacy_content_title.php | 10 +- src/views/email/network_title.php | 16 +-- src/views/email/userprofile_list.php | 24 ++-- src/views/email/validated.php | 26 ++--- src/views/email/validator.php | 24 ++-- src/views/newsletter/_form.php | 38 +++--- src/views/newsletter/_search.php | 16 +-- src/views/newsletter/associa-m2m.php | 22 ++-- src/views/newsletter/create.php | 14 +-- src/views/newsletter/index.php | 36 +++--- src/views/newsletter/update.php | 14 +-- src/views/newsletter/view.php | 34 +++--- .../widgets/NotificationNavDecorator.php | 12 +- .../ItemAndCardWidgetEmailSummaryWidget.php | 18 ++- src/widgets/NotifyContentLanguageWidget.php | 18 ++- src/widgets/NotifyFrequencyAdvancedWidget.php | 30 +++-- src/widgets/NotifyFrequencyWidget.php | 24 ++-- src/widgets/SendNewsletterWidget.php | 28 ++--- src/widgets/icons/WidgetIconNewsletterAll.php | 18 ++- .../icons/WidgetIconNewsletterCreatedBy.php | 18 ++- .../icons/WidgetIconNewsletterDashboard.php | 18 ++- src/widgets/views/general_notify.php | 66 +++++------ src/widgets/views/notify_content_language.php | 4 +- 125 files changed, 1037 insertions(+), 1464 deletions(-) diff --git a/composer.json b/composer.json index 1b9993f..d5b8fc8 100755 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { - "name": "elitedivision/amos-notify", + "name": "arter/amos-notify", "description": "Modulo di gestione notifiche - plugin", "keywords": [ "amos", "notifiche", "yii2" ], - "homepage": "http://www.elitedivision.it/", + "homepage": "http://www.arter.it/", "type": "component", - "license": "BSD-3-Clause", + "proscription": "BSD-3-Clause", "support": { "issues": "https://github.com/yiisoft/yii2/issues?state=open", "forum": "http://www.yiiframework.com/forum/", @@ -18,10 +18,10 @@ }, "require": { "php": ">=7.0", - "elitedivision/amos-admin": "^2.2.0", - "elitedivision/amos-core": "^1.19.0", - "elitedivision/amos-email-manager": "^1.1.19", - "elitedivision/amos-workflow": "^1.0" + "arter/amos-admin": "^2.2.0", + "arter/amos-core": "^1.19.0", + "arter/amos-email-manager": "^1.1.19", + "arter/amos-workflow": "^1.0" }, "config": { "process-timeout": 1800, @@ -29,10 +29,10 @@ }, "autoload": { "psr-4": { - "elitedivision\\amos\\notificationmanager\\": "src" + "arter\\amos\\notificationmanager\\": "src" } }, "scripts": { - "post-install-cmd": "php yii migrate --migrationPath=@vendor/elitedivision/amos-notify/migrations --interactive=0" + "post-install-cmd": "php yii migrate --migrationPath=@vendor/arter/amos-notify/migrations --interactive=0" } } diff --git a/src/AmosNotify.php b/src/AmosNotify.php index 5bb0b4d..f0782b1 100755 --- a/src/AmosNotify.php +++ b/src/AmosNotify.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager; +namespace arter\amos\notificationmanager; /** * Plugin per la gestione delle notifiche. @@ -50,14 +46,14 @@ namespace elitedivision\amos\notificationmanager; * CHANNEL_ALL -- Tutti i Canali */ -use elitedivision\amos\core\module\AmosModule; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\base\NotifierRepository; -use elitedivision\amos\notificationmanager\base\NotifyWidget; -use elitedivision\amos\notificationmanager\listeners\NotifyWorkflowListener; -use elitedivision\amos\notificationmanager\models\NotificationChannels; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; -use elitedivision\amos\notificationmanager\utility\NotifyUtility; +use arter\amos\core\module\AmosModule; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\base\NotifierRepository; +use arter\amos\notificationmanager\base\NotifyWidget; +use arter\amos\notificationmanager\listeners\NotifyWorkflowListener; +use arter\amos\notificationmanager\models\NotificationChannels; +use arter\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\notificationmanager\utility\NotifyUtility; use raoul2000\workflow\base\SimpleWorkflowBehavior; use Yii; use yii\base\Event; @@ -66,7 +62,7 @@ use yii\log\Logger; /** * Class AmosNotify - * @package elitedivision\amos\notificationmanager + * @package arter\amos\notificationmanager */ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, NotifyWidget { @@ -81,11 +77,11 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not ]; public $orderEmailSummary = [ - 'elitedivision\amos\events\models\Event', - 'elitedivision\amos\news\models\News', - 'elitedivision\amos\partnershipprofiles\models\PartnershipProfile', - 'elitedivision\amos\discussioni\models\DiscussioniTopic', - 'elitedivision\amos\sondaggi\models\Sondaggi', + 'arter\amos\events\models\Event', + 'arter\amos\news\models\News', + 'arter\amos\partnershipprofiles\models\PartnershipProfile', + 'arter\amos\discussioni\models\DiscussioniTopic', + 'arter\amos\sondaggi\models\Sondaggi', ]; /** @var bool */ @@ -99,7 +95,7 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not /** * @var array * $personalizedValidatedEmail => [ - * "elitedivision\amos\admin\models\UserProfile" => [ + * "arter\amos\admin\models\UserProfile" => [ 'class' => 'backend\modules\poiadmin\utility\PoiAdminEmailUtility', 'method' => 'sendEmailUserValidated' ] @@ -110,8 +106,8 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not /** * @var null |string * [ - * 'elitedivision\amos\admin\models\UserProfile' => '@common/mail/notify_validation/validator_user_profile', - * 'elitedivision\amos\news\models\News' => '@common/mail/notify_validation/validator_news', + * 'arter\amos\admin\models\UserProfile' => '@common/mail/notify_validation/validator_user_profile', + * 'arter\amos\news\models\News' => '@common/mail/notify_validation/validator_news', * ] * */ @@ -120,8 +116,8 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not /** * @var null |string * [ - * 'elitedivision\amos\admin\models\UserProfile' => '@common/mail/notify_validation/validated_user_profile', - * 'elitedivision\amos\news\models\News' => '@common/mail/notify_validation/validated_news', + * 'arter\amos\admin\models\UserProfile' => '@common/mail/notify_validation/validated_user_profile', + * 'arter\amos\news\models\News' => '@common/mail/notify_validation/validated_news', * ] */ public $viewPathEmailNotifyValidated = []; @@ -157,7 +153,7 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not /** * @inheritdoc */ - public $controllerNamespace = 'elitedivision\amos\notificationmanager\controllers'; + public $controllerNamespace = 'arter\amos\notificationmanager\controllers'; /** * If set to true it enables the sending of segmented notifications @@ -211,7 +207,7 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not if (isset(Yii::$app->params['layoutMailConfigurations']['textContrastBgPrimaryDark'])) { $this->mailThemeColor['textContrastBgPrimaryDark'] = Yii::$app->params['layoutMailConfigurations']['textContrastBgPrimaryDark']; } - \Yii::setAlias('@elitedivision/amos/notificationmanager/commands', __DIR__ . '/commands/'); + \Yii::setAlias('@arter/amos/notificationmanager/commands', __DIR__ . '/commands/'); // initialize the module with the configuration loaded from config.php \Yii::configure($this, require(__DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php')); $this->orderEmailSummary = array_unique($this->orderEmailSummary); @@ -223,7 +219,7 @@ class AmosNotify extends AmosModule implements \yii\base\BootstrapInterface, Not public function bootstrap($app) { if ($app instanceof \yii\console\Application) { - $this->controllerNamespace = 'elitedivision\amos\notificationmanager\commands'; + $this->controllerNamespace = 'arter\amos\notificationmanager\commands'; } else { if (self::$registerEvent == false) { self::$registerEvent = true; diff --git a/src/README.md b/src/README.md index 9af685e..340c90c 100755 --- a/src/README.md +++ b/src/README.md @@ -6,25 +6,25 @@ You need to require this package and enable the module in your configuration. add to composer requirements in composer.json ``` -"elitedivision/amos-news": "dev-master", +"arter/amos-news": "dev-master", ``` or run command bash: ```bash -composer require "elitedivision/amos-news:dev-master" +composer require "arter/amos-news:dev-master" ``` Enable the Notify modules in common modules-amos.php, add : ```php 'notify' => [ - 'class' => 'elitedivision\amos\news\AmosNews', + 'class' => 'arter\amos\news\AmosNews', ], ``` add news migrations to console modules (console/config/migrations-amos.php): ``` -'@vendor/elitedivision/amos-notify/src/migrations' +'@vendor/arter/amos-notify/src/migrations' ``` @@ -45,11 +45,11 @@ for reports: ``` 'report' => [ - 'class' => 'elitedivision\amos\report\AmosReport', + 'class' => 'arter\amos\report\AmosReport', 'modelsEnabled' => [ . . - 'elitedivision\amos\news\models\News', //line to add + 'arter\amos\news\models\News', //line to add . . ] @@ -62,9 +62,9 @@ for reports: - If you want to personalize the views of the contents in the notification email summary you have to put the module in /common/config/modules-amos ``` 'news' => [ - 'class' => 'elitedivision\amos\news\AmosNews', - 'viewPathEmailSummary' => '@vendor/elitedivision/amos-news/src/views/email/notify_summary' - 'viewPathEmailSummaryNetwork' => '@vendor/elitedivision/amos-news/src/views/email/notify_summary_network' + 'class' => 'arter\amos\news\AmosNews', + 'viewPathEmailSummary' => '@vendor/arter/amos-news/src/views/email/notify_summary' + 'viewPathEmailSummaryNetwork' => '@vendor/arter/amos-news/src/views/email/notify_summary_network' ] ], ``` @@ -79,11 +79,11 @@ for reports: -Is used to define their order in the email summury ```php public $orderEmailSummary = [ - 'elitedivision\amos\events\models\Event', - 'elitedivision\amos\news\models\News', - 'elitedivision\amos\partnershipprofiles\models', - 'elitedivision\amos\discussioni\models\DiscussioniTopic', - 'elitedivision\amos\sondaggi\models\Sondaggi', + 'arter\amos\events\models\Event', + 'arter\amos\news\models\News', + 'arter\amos\partnershipprofiles\models', + 'arter\amos\discussioni\models\DiscussioniTopic', + 'arter\amos\sondaggi\models\Sondaggi', ]; ``` diff --git a/src/assets/NotifyAsset.php b/src/assets/NotifyAsset.php index bb68ef1..b9c5b55 100755 --- a/src/assets/NotifyAsset.php +++ b/src/assets/NotifyAsset.php @@ -1,32 +1,28 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\assets; +namespace arter\amos\notificationmanager\assets; use yii\web\AssetBundle; /** * Class NotifyAsset - * @package elitedivision\amos\notificationmanager\assets + * @package arter\amos\notificationmanager\assets */ class NotifyAsset extends AssetBundle { /** * @inheritdoc */ - public $sourcePath = '@vendor/elitedivision/amos-notify/src/assets/web'; + public $sourcePath = '@vendor/arter/amos-notify/src/assets/web'; /** * @inheritdoc @@ -55,9 +51,9 @@ class NotifyAsset extends AssetBundle { $moduleL = \Yii::$app->getModule('layout'); if (!is_null($moduleL)) { - $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; + $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; } else { - $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; + $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; } parent::init(); } diff --git a/src/assets/web/less/notify.less b/src/assets/web/less/notify.less index d91328b..ceee590 100755 --- a/src/assets/web/less/notify.less +++ b/src/assets/web/less/notify.less @@ -1,8 +1,8 @@ /** IMPORT AMOS-LAYOUT VARIABLES */ -@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/variables.less"; -@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/utility.less"; +@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/variables.less"; +@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/utility.less"; /** IMPORT STYLE-CUSTOM */ diff --git a/src/base/Builder.php b/src/base/Builder.php index 7a79dad..7216aef 100755 --- a/src/base/Builder.php +++ b/src/base/Builder.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base + * @package arter\amos\notificationmanager\base * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base; +namespace arter\amos\notificationmanager\base; -use elitedivision\amos\core\user\User; +use arter\amos\core\user\User; /** * Interface Builder - * @package elitedivision\amos\notificationmanager\base + * @package arter\amos\notificationmanager\base */ interface Builder { diff --git a/src/base/BuilderFactory.php b/src/base/BuilderFactory.php index f6630f8..42bd03a 100755 --- a/src/base/BuilderFactory.php +++ b/src/base/BuilderFactory.php @@ -1,37 +1,33 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base + * @package arter\amos\notificationmanager\base * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base; +namespace arter\amos\notificationmanager\base; -use elitedivision\amos\notificationmanager\base\builder\ContactAcceptedMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\ContentImmediateMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\ContentMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\CustomMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\NewsletterBuilder; -use elitedivision\amos\notificationmanager\base\builder\SleepingUserMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\SuccessfulContentMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\SuccessfulUserMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\SuggestedLinkMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\ValidatedMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\ValidatorsMailBuilder; -use elitedivision\amos\notificationmanager\models\ChangeStatusEmail; +use arter\amos\notificationmanager\base\builder\ContactAcceptedMailBuilder; +use arter\amos\notificationmanager\base\builder\ContentImmediateMailBuilder; +use arter\amos\notificationmanager\base\builder\ContentMailBuilder; +use arter\amos\notificationmanager\base\builder\CustomMailBuilder; +use arter\amos\notificationmanager\base\builder\NewsletterBuilder; +use arter\amos\notificationmanager\base\builder\SleepingUserMailBuilder; +use arter\amos\notificationmanager\base\builder\SuccessfulContentMailBuilder; +use arter\amos\notificationmanager\base\builder\SuccessfulUserMailBuilder; +use arter\amos\notificationmanager\base\builder\SuggestedLinkMailBuilder; +use arter\amos\notificationmanager\base\builder\ValidatedMailBuilder; +use arter\amos\notificationmanager\base\builder\ValidatorsMailBuilder; +use arter\amos\notificationmanager\models\ChangeStatusEmail; use yii\base\BaseObject; /** * Class BuilderFactory - * @package elitedivision\amos\notificationmanager\base + * @package arter\amos\notificationmanager\base */ class BuilderFactory extends BaseObject { diff --git a/src/base/NotifierRepository.php b/src/base/NotifierRepository.php index 5a79278..6876ca5 100755 --- a/src/base/NotifierRepository.php +++ b/src/base/NotifierRepository.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base; +namespace arter\amos\notificationmanager\base; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\user\AmosUser; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\Notification; -use elitedivision\amos\notificationmanager\models\NotificationChannels; -use elitedivision\amos\notificationmanager\models\NotificationsRead; +use arter\amos\core\record\Record; +use arter\amos\core\user\AmosUser; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\models\NotificationChannels; +use arter\amos\notificationmanager\models\NotificationsRead; use Yii; use yii\db\ActiveQuery; @@ -32,7 +28,7 @@ use yii\log\Logger; /** * Class NotifierRepository - * @package elitedivision\amos\notificationmanager\base + * @package arter\amos\notificationmanager\base */ class NotifierRepository { diff --git a/src/base/NotifyWidget.php b/src/base/NotifyWidget.php index f2a30a5..c276392 100755 --- a/src/base/NotifyWidget.php +++ b/src/base/NotifyWidget.php @@ -1,18 +1,14 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * * @package piattaforma-openinnovation * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base; +namespace arter\amos\notificationmanager\base; interface NotifyWidget diff --git a/src/base/NotifyWidgetDoNothing.php b/src/base/NotifyWidgetDoNothing.php index 546f59c..4d85c3a 100755 --- a/src/base/NotifyWidgetDoNothing.php +++ b/src/base/NotifyWidgetDoNothing.php @@ -1,18 +1,14 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * * @package piattaforma-openinnovation * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base; +namespace arter\amos\notificationmanager\base; class NotifyWidgetDoNothing implements NotifyWidget diff --git a/src/base/builder/AMailBuilder.php b/src/base/builder/AMailBuilder.php index 90c998b..2d6e78d 100755 --- a/src/base/builder/AMailBuilder.php +++ b/src/base/builder/AMailBuilder.php @@ -1,33 +1,29 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\core\user\User; -use elitedivision\amos\core\utilities\Email; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\emailmanager\AmosEmail; -use elitedivision\amos\notificationmanager\base\Builder; -use elitedivision\amos\notificationmanager\models\NotificationConf; +use arter\amos\core\user\User; +use arter\amos\core\utilities\Email; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\emailmanager\AmosEmail; +use arter\amos\notificationmanager\base\Builder; +use arter\amos\notificationmanager\models\NotificationConf; use Yii; use yii\base\BaseObject; use yii\helpers\Console; /** * Class AMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ abstract class AMailBuilder extends BaseObject implements Builder { @@ -248,7 +244,7 @@ abstract class AMailBuilder extends BaseObject implements Builder { $module = \Yii::$app->getModule('translation'); if ($module && !empty($module->enableUserLanguage) && $module->enableUserLanguage == true) { - /** @var \elitedivision\amos\translation\AmosTranslation $module */ + /** @var \arter\amos\translation\AmosTranslation $module */ $lang = $module->getUserLanguage($userId); $module->setAppLanguage($lang); } diff --git a/src/base/builder/ContactAcceptedMailBuilder.php b/src/base/builder/ContactAcceptedMailBuilder.php index bc9f49e..65de529 100755 --- a/src/base/builder/ContactAcceptedMailBuilder.php +++ b/src/base/builder/ContactAcceptedMailBuilder.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; use Yii; /** * Class SleepingUserMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class ContactAcceptedMailBuilder extends ContentMailBuilder { diff --git a/src/base/builder/ContentImmediateMailBuilder.php b/src/base/builder/ContentImmediateMailBuilder.php index 8abfef1..8509b6d 100755 --- a/src/base/builder/ContentImmediateMailBuilder.php +++ b/src/base/builder/ContentImmediateMailBuilder.php @@ -1,20 +1,16 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; use yii\helpers\BaseStringHelper; class ContentImmediateMailBuilder extends ContentMailBuilder @@ -46,7 +42,7 @@ class ContentImmediateMailBuilder extends ContentMailBuilder $controller = \Yii::$app->controller; $contents_number = count($resultset); - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_immediate_email_header", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_immediate_email_header", [ 'contents_number' => $contents_number ]); diff --git a/src/base/builder/ContentMailBuilder.php b/src/base/builder/ContentMailBuilder.php index f7edefb..a073e0f 100755 --- a/src/base/builder/ContentMailBuilder.php +++ b/src/base/builder/ContentMailBuilder.php @@ -1,35 +1,31 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\admin\AmosAdmin; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\Notification; -use elitedivision\amos\notificationmanager\record\NotifyRecord; -use elitedivision\amos\notificationmanager\utility\NotifyUtility; +use arter\amos\admin\AmosAdmin; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\models\ModelsClassname; +use arter\amos\core\record\Record; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\record\NotifyRecord; +use arter\amos\notificationmanager\utility\NotifyUtility; use Yii; use yii\helpers\Console; /** * Class ContentMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class ContentMailBuilder extends AMailBuilder { @@ -123,7 +119,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContent(Record $model, $user) { $controller = \Yii::$app->controller; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content", [ 'model' => $model, 'profile' => $user->userProfile ]); @@ -145,7 +141,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentLegacy(Record $model, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content", [ 'model' => $model, 'profile' => $user->userProfile ]); @@ -163,7 +159,7 @@ class ContentMailBuilder extends AMailBuilder $controller = \Yii::$app->controller; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ 'title' => $model->getGrammar()->getModelLabel(), 'icon' => $icon ]); @@ -183,7 +179,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentTitleLegacy(ModelLabelsInterface $model) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content_title", [ 'title' => $model->getGrammar()->getModelLabel(), ]); return $ris; @@ -197,7 +193,7 @@ class ContentMailBuilder extends AMailBuilder { $controller = \Yii::$app->controller; $contents_number = count($resultset); - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ 'contents_number' => $contents_number ]); @@ -217,7 +213,7 @@ class ContentMailBuilder extends AMailBuilder { $controller = \Yii::$app->controller; $contents_number = count($resultset); - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ 'contents_number' => $contents_number ]); return $ris; @@ -231,7 +227,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentFooter(array $resultset, User $user) { $controller = \Yii::$app->controller; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); $ris = $this->renderView(AmosNotify::getModuleName(), "content_footer", [ 'user' => $user, @@ -248,7 +244,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentFooterLegacy(array $resultset, User $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); return $ris; } @@ -392,7 +388,7 @@ class ContentMailBuilder extends AMailBuilder // order of community (communities closed first) $networkClassname = ModelsClassname::findOne($notify->models_classname_id); - if ($networkClassname->classname == 'elitedivision\amos\community\models\Community') { + if ($networkClassname->classname == 'arter\amos\community\models\Community') { $classnameNetwork = $networkClassname->classname; $community = $classnameNetwork::findOne($notify->record_id); if ($community->community_type_id == 3 && !in_array($community->id, $orderNetworks)) { @@ -595,7 +591,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentList($arrayModels, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list", [ 'arrayModels' => $arrayModels, 'profile' => $user->userProfile ]); @@ -610,7 +606,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderSectionTitle($section_title, $section_description = '') { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_section_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_section_title", [ 'section_title' => $section_title, 'section_description' => $section_description ]); @@ -625,7 +621,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderUserProfileList($arrayModels, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/userprofile_list", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/userprofile_list", [ 'arrayModels' => $arrayModels, 'profile' => $user->userProfile ]); @@ -643,7 +639,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderContentListNetwork($arrayModels, $arrayModelsComments, $user, $modelNetwork, $color) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list_network", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list_network", [ 'arrayModels' => $arrayModels, 'arrayModelsComments' => $arrayModelsComments, 'profile' => $user->userProfile, @@ -697,9 +693,9 @@ class ContentMailBuilder extends AMailBuilder */ protected function renderContentTitleNetwork(ModelLabelsInterface $model, $color) { - $icon = \elitedivision\amos\notificationmanager\utility\NotifyUtility::getIconPlugins(get_class($model), $color); + $icon = \arter\amos\notificationmanager\utility\NotifyUtility::getIconPlugins(get_class($model), $color); $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title_network", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title_network", [ 'title' => $model->getGrammar()->getModelLabel(), 'icon' => $icon, 'color' => $color, @@ -716,7 +712,7 @@ class ContentMailBuilder extends AMailBuilder protected function renderNetworkTitle(Record $model, $modelNetwork, $color) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/network_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/network_title", [ 'model' => $model, 'modelNetwork' => $modelNetwork, 'color' => $color diff --git a/src/base/builder/CustomMailBuilder.php b/src/base/builder/CustomMailBuilder.php index de4c193..eef0e51 100755 --- a/src/base/builder/CustomMailBuilder.php +++ b/src/base/builder/CustomMailBuilder.php @@ -1,32 +1,28 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\ChangeStatusEmail; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\ChangeStatusEmail; use Yii; use yii\base\Exception; use yii\helpers\ArrayHelper; /** * Class CustomMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class CustomMailBuilder extends AMailBuilder { @@ -97,9 +93,9 @@ class CustomMailBuilder extends AMailBuilder if($email->template){ $this->setTemplate($email->template); } elseif($email->toCreator){ - $this->setTemplate("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/validated"); + $this->setTemplate("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/validated"); } else { - $this->setTemplate("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/validator"); + $this->setTemplate("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/validator"); } if(count($email->params)){ $this->setParams($email->params); diff --git a/src/base/builder/NewsletterBuilder.php b/src/base/builder/NewsletterBuilder.php index d6a538f..85091af 100755 --- a/src/base/builder/NewsletterBuilder.php +++ b/src/base/builder/NewsletterBuilder.php @@ -1,33 +1,29 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\admin\AmosAdmin; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\user\User; -use elitedivision\amos\core\utilities\Email; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\models\NewsletterContents; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; -use elitedivision\amos\notificationmanager\record\NotifyRecord; -use elitedivision\amos\notificationmanager\utility\NewsletterUtility; -use elitedivision\amos\notificationmanager\utility\NotifyUtility; +use arter\amos\admin\AmosAdmin; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\models\ModelsClassname; +use arter\amos\core\record\Record; +use arter\amos\core\user\User; +use arter\amos\core\utilities\Email; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\models\NewsletterContents; +use arter\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\notificationmanager\record\NotifyRecord; +use arter\amos\notificationmanager\utility\NewsletterUtility; +use arter\amos\notificationmanager\utility\NotifyUtility; use Yii; use yii\db\ActiveQuery; use yii\helpers\Console; @@ -35,7 +31,7 @@ use yii\log\Logger; /** * Class NewsletterBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class NewsletterBuilder extends AMailBuilder { @@ -245,7 +241,7 @@ class NewsletterBuilder extends AMailBuilder $controller = \Yii::$app->controller; $userProfile = $user->userProfile; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content", [ 'model' => $model, 'profile' => $userProfile ]); @@ -267,7 +263,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentLegacy(Record $model, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/legacy_content", [ 'model' => $model, 'profile' => $user->userProfile ]); @@ -284,7 +280,7 @@ class NewsletterBuilder extends AMailBuilder $modelLabel = $model->getGrammar()->getModelLabel(); $controller = \Yii::$app->controller; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ 'title' => $modelLabel, 'icon' => $icon ]); @@ -305,7 +301,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentTitleLegacy(ModelLabelsInterface $model) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title", [ 'title' => $model->getGrammar()->getModelLabel(), ]); return $ris; @@ -320,7 +316,7 @@ class NewsletterBuilder extends AMailBuilder $controller = \Yii::$app->controller; $contents_number = count($resultset); - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ 'contents_number' => $contents_number ]); @@ -340,7 +336,7 @@ class NewsletterBuilder extends AMailBuilder { $controller = \Yii::$app->controller; $contents_number = count($resultset); - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_header", [ 'contents_number' => $contents_number ]); return $ris; @@ -354,7 +350,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentFooter(array $resultset, User $user) { $controller = \Yii::$app->controller; - $view = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); + $view = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); $ris = $this->renderView(AmosNotify::getModuleName(), "content_footer", [ 'user' => $user, @@ -371,7 +367,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentFooterLegacy(array $resultset, User $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_footer", ['user' => $user]); return $ris; } @@ -515,7 +511,7 @@ class NewsletterBuilder extends AMailBuilder // // // order of community (communities closed first) // $networkClassname = ModelsClassname::findOne($notify->models_classname_id); -// if ($networkClassname->classname == 'elitedivision\amos\community\models\Community') { +// if ($networkClassname->classname == 'arter\amos\community\models\Community') { // $classnameNetwork = $networkClassname->classname; // $community = $classnameNetwork::findOne($notify->record_id); // if ($community->community_type_id == 3 && !in_array($community->id, $orderNetworks)) { @@ -711,7 +707,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentList($arrayModels, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list", [ 'arrayModels' => $arrayModels, 'profile' => $user->userProfile ]); @@ -726,7 +722,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderSectionTitle($section_title, $section_description = '') { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_section_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_section_title", [ 'section_title' => $section_title, 'section_description' => $section_description ]); @@ -741,7 +737,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderUserProfileList($arrayModels, $user) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/userprofile_list", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/userprofile_list", [ 'arrayModels' => $arrayModels, 'profile' => $user->userProfile ]); @@ -759,7 +755,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderContentListNetwork($arrayModels, $arrayModelsComments, $user, $modelNetwork, $color) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list_network", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_list_network", [ 'arrayModels' => $arrayModels, 'arrayModelsComments' => $arrayModelsComments, 'profile' => $user->userProfile, @@ -814,9 +810,9 @@ class NewsletterBuilder extends AMailBuilder */ protected function renderContentTitleNetwork(ModelLabelsInterface $model, $color) { - $icon = \elitedivision\amos\notificationmanager\utility\NotifyUtility::getIconPlugins(get_class($model), $color); + $icon = \arter\amos\notificationmanager\utility\NotifyUtility::getIconPlugins(get_class($model), $color); $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title_network", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_title_network", [ 'title' => $model->getGrammar()->getModelLabel(), 'icon' => $icon, 'color' => $color, @@ -834,7 +830,7 @@ class NewsletterBuilder extends AMailBuilder protected function renderNetworkTitle(Record $model, $modelNetwork, $color) { $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/network_title", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/network_title", [ 'model' => $model, 'modelNetwork' => $modelNetwork, 'color' => $color diff --git a/src/base/builder/SleepingUserMailBuilder.php b/src/base/builder/SleepingUserMailBuilder.php index f64ad6e..ac62400 100755 --- a/src/base/builder/SleepingUserMailBuilder.php +++ b/src/base/builder/SleepingUserMailBuilder.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; use Yii; /** * Class SleepingUserMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class SleepingUserMailBuilder extends ContentMailBuilder { diff --git a/src/base/builder/SuccessfulContentMailBuilder.php b/src/base/builder/SuccessfulContentMailBuilder.php index a5730c9..b676e06 100755 --- a/src/base/builder/SuccessfulContentMailBuilder.php +++ b/src/base/builder/SuccessfulContentMailBuilder.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\NotificationsConfOpt; use Yii; /** * Class SleepingUserMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class SuccessfulContentMailBuilder extends ContentMailBuilder { @@ -107,7 +103,7 @@ class SuccessfulContentMailBuilder extends ContentMailBuilder $controller = \Yii::$app->controller; - $ris = $controller->renderPartial("@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_howmany", [ + $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_howmany", [ 'message' => $message ]); return $ris; diff --git a/src/base/builder/SuccessfulUserMailBuilder.php b/src/base/builder/SuccessfulUserMailBuilder.php index 8e51a11..d1ccd09 100755 --- a/src/base/builder/SuccessfulUserMailBuilder.php +++ b/src/base/builder/SuccessfulUserMailBuilder.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; use Yii; /** * Class SleepingUserMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class SuccessfulUserMailBuilder extends SuccessfulContentMailBuilder { diff --git a/src/base/builder/SuggestedLinkMailBuilder.php b/src/base/builder/SuggestedLinkMailBuilder.php index 9b53839..f39e003 100755 --- a/src/base/builder/SuggestedLinkMailBuilder.php +++ b/src/base/builder/SuggestedLinkMailBuilder.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; use Yii; /** * Class SleepingUserMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class SuggestedLinkMailBuilder extends ContentMailBuilder { diff --git a/src/base/builder/ValidatedMailBuilder.php b/src/base/builder/ValidatedMailBuilder.php index b19e7f4..b4674a5 100755 --- a/src/base/builder/ValidatedMailBuilder.php +++ b/src/base/builder/ValidatedMailBuilder.php @@ -1,30 +1,26 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\cwh\base\ModelContentInterface; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\cwh\base\ModelContentInterface; use Yii; /** * Class ValidatedMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class ValidatedMailBuilder extends AMailBuilder { @@ -54,7 +50,7 @@ class ValidatedMailBuilder extends AMailBuilder $moduleNotify = Yii::$app->getModule('notify'); try { - $viewValidatorPath = "@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/validated"; + $viewValidatorPath = "@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/validated"; if($moduleNotify && !empty($moduleNotify->viewPathEmailNotifyValidated) && !empty($moduleNotify->viewPathEmailNotifyValidated[get_class($model)])){ $viewValidatorPath = $moduleNotify->viewPathEmailNotifyValidated[get_class($model)]; } @@ -96,7 +92,7 @@ class ValidatedMailBuilder extends AMailBuilder 'article' => $model->getGrammar()->getArticleSingular(), 'label' => $model->getGrammar()->getModelSingularLabel(), - 'publisher_widget' => \elitedivision\amos\core\forms\PublishedByWidget::widget([ + 'publisher_widget' => \arter\amos\core\forms\PublishedByWidget::widget([ 'model' => $model, 'layout' => $layout, ]), @@ -104,7 +100,7 @@ class ValidatedMailBuilder extends AMailBuilder 'publisher_lastname' => $userProfile->cognome, 'publisher_avatar' => $userProfile->avatarUrl, - 'validator_widget' => \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + 'validator_widget' => \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $validator, 'onlyAvatar' => true, 'absoluteUrl' => true @@ -115,14 +111,14 @@ class ValidatedMailBuilder extends AMailBuilder ]; if(!is_null($userProfile)) { - $params['publisher_widget'] = \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + $params['publisher_widget'] = \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $userProfile, 'onlyAvatar' => true, 'absoluteUrl' => true ]); } - if (!$model instanceof \elitedivision\amos\admin\models\UserProfile) { + if (!$model instanceof \arter\amos\admin\models\UserProfile) { $params['description'] = $model->getDescription(false); } diff --git a/src/base/builder/ValidatorsMailBuilder.php b/src/base/builder/ValidatorsMailBuilder.php index f0fc2ef..3fcef5a 100755 --- a/src/base/builder/ValidatorsMailBuilder.php +++ b/src/base/builder/ValidatorsMailBuilder.php @@ -1,30 +1,26 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\base\builder; +namespace arter\amos\notificationmanager\base\builder; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\AmosNotify; use Yii; /** * Class ValidatorsMailBuilder - * @package elitedivision\amos\notificationmanager\base\builder + * @package arter\amos\notificationmanager\base\builder */ class ValidatorsMailBuilder extends AMailBuilder { @@ -56,7 +52,7 @@ class ValidatorsMailBuilder extends AMailBuilder $url = isset($moduleMyActivities) ? Yii::$app->urlManager->createAbsoluteUrl('myactivities/my-activities/index') : $model->getFullViewUrl(); try { - $viewValidatorPath = "@vendor/elitedivision/amos-" . AmosNotify::getModuleName() . "/src/views/email/validator"; + $viewValidatorPath = "@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/validator"; if($moduleNotify && !empty($moduleNotify->viewPathEmailNotifyValidator) && !empty($moduleNotify->viewPathEmailNotifyValidator[get_class($model)])){ $viewValidatorPath = $moduleNotify->viewPathEmailNotifyValidator[get_class($model)]; } diff --git a/src/behaviors/NotifyBehavior.php b/src/behaviors/NotifyBehavior.php index 313fb02..7055bbe 100755 --- a/src/behaviors/NotifyBehavior.php +++ b/src/behaviors/NotifyBehavior.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\behaviors + * @package arter\amos\notificationmanager\behaviors * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\behaviors; +namespace arter\amos\notificationmanager\behaviors; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\NotificationChannels; -use \elitedivision\amos\core\controllers\CrudController; -use elitedivision\amos\notificationmanager\models\NotificationSendEmail; -use elitedivision\amos\notificationmanager\models\NotificationsRead; -use elitedivision\amos\notificationmanager\models\NotificationContentLanguage; +use arter\amos\core\models\ModelsClassname; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\NotificationChannels; +use \arter\amos\core\controllers\CrudController; +use arter\amos\notificationmanager\models\NotificationSendEmail; +use arter\amos\notificationmanager\models\NotificationsRead; +use arter\amos\notificationmanager\models\NotificationContentLanguage; use ReflectionClass; use Yii; use yii\base\Behavior; @@ -32,7 +28,7 @@ use yii\web\Application; /** * Class NotifyBehavior - * @package elitedivision\amos\core\behaviors + * @package arter\amos\core\behaviors */ class NotifyBehavior extends Behavior { @@ -335,7 +331,7 @@ class NotifyBehavior extends Behavior } if (!empty($notify)) { $canSave = true; - if ($model instanceof \elitedivision\amos\core\interfaces\NotificationPersonalizedQueryInterface) { + if ($model instanceof \arter\amos\core\interfaces\NotificationPersonalizedQueryInterface) { $canSave = $model->canSaveNotification(); } if ($canSave) { diff --git a/src/commands/NotifierController.php b/src/commands/NotifierController.php index bd90d73..03b78c5 100755 --- a/src/commands/NotifierController.php +++ b/src/commands/NotifierController.php @@ -1,47 +1,43 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\commands + * @package arter\amos\notificationmanager\commands * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\commands; - -use elitedivision\amos\admin\AmosAdmin; -use elitedivision\amos\admin\base\ConfigurationManager; -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\core\interfaces\NotificationPersonalizedQueryInterface; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\user\User; -use elitedivision\amos\cwh\AmosCwh; -use elitedivision\amos\cwh\models\CwhConfigContents; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\base\builder\AMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\ContentMailBuilder; -use elitedivision\amos\notificationmanager\base\builder\NewsletterBuilder; -use elitedivision\amos\notificationmanager\base\BuilderFactory; -use elitedivision\amos\notificationmanager\exceptions\NewsletterException; -use elitedivision\amos\notificationmanager\models\base\NotificationSendEmail; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\models\NewsletterContents; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; -use elitedivision\amos\notificationmanager\models\Notification; -use elitedivision\amos\notificationmanager\models\NotificationChannels; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\models\NotificationConfContent; -use elitedivision\amos\notificationmanager\models\NotificationContentLanguage; -use elitedivision\amos\notificationmanager\models\NotificationLanguagePreferences; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; -use elitedivision\amos\notificationmanager\models\NotificationsRead; -use elitedivision\amos\notificationmanager\utility\NotifyUtility; +namespace arter\amos\notificationmanager\commands; + +use arter\amos\admin\AmosAdmin; +use arter\amos\admin\base\ConfigurationManager; +use arter\amos\admin\models\UserProfile; +use arter\amos\core\interfaces\NotificationPersonalizedQueryInterface; +use arter\amos\core\models\ModelsClassname; +use arter\amos\core\record\Record; +use arter\amos\core\user\User; +use arter\amos\cwh\AmosCwh; +use arter\amos\cwh\models\CwhConfigContents; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\base\builder\AMailBuilder; +use arter\amos\notificationmanager\base\builder\ContentMailBuilder; +use arter\amos\notificationmanager\base\builder\NewsletterBuilder; +use arter\amos\notificationmanager\base\BuilderFactory; +use arter\amos\notificationmanager\exceptions\NewsletterException; +use arter\amos\notificationmanager\models\base\NotificationSendEmail; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\models\NewsletterContents; +use arter\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\models\NotificationChannels; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationConfContent; +use arter\amos\notificationmanager\models\NotificationContentLanguage; +use arter\amos\notificationmanager\models\NotificationLanguagePreferences; +use arter\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\notificationmanager\models\NotificationsRead; +use arter\amos\notificationmanager\utility\NotifyUtility; use Exception; use lajax\translatemanager\models\Language; use Yii; @@ -54,7 +50,7 @@ use yii\log\Logger; /** * Class NotifierController - * @package elitedivision\amos\notificationmanager\commands + * @package arter\amos\notificationmanager\commands */ class NotifierController extends Controller { @@ -295,8 +291,8 @@ class NotifierController extends Controller $union = $query->union($queryConfCommunity); $moduleUtility = \Yii::$app->getModule('utility'); - if($moduleUtility && class_exists('elitedivision\amos\utility\models\PlatformConfigs')){ - $config = \elitedivision\amos\utility\models\PlatformConfigs::getConfigValue('notify', 'send_email_summary_to'); + if($moduleUtility && class_exists('arter\amos\utility\models\PlatformConfigs')){ + $config = \arter\amos\utility\models\PlatformConfigs::getConfigValue('notify', 'send_email_summary_to'); if($config){ if(!empty($config->value)) { $ids = explode(',', $config->value); @@ -355,7 +351,7 @@ class NotifierController extends Controller if (\Yii::$app->getModule('community')) { foreach ($comminities as $comminity_id) { Console::stdout('Start scope-mail-channel for community:'.$comminity_id.PHP_EOL); - $community = \elitedivision\amos\community\models\Community::findOne(['id' => $comminity_id]); + $community = \arter\amos\community\models\Community::findOne(['id' => $comminity_id]); if (!is_null($community)) { $users = $community->getCommunityUserMms()->select('user_profile.user_id, user_profile.created_at')->all(); /** @var AmosCwh $cwhModule */ @@ -403,7 +399,7 @@ class NotifierController extends Controller $notificationSendEmailTable = $notificationSendEmailModel::tableName(); try { if ($issetCwhModule) { - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find() + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find() ->addSelect('classname') ->andWhere(['NOT IN', 'classname', $contentToNotNotify]) ->column(); @@ -478,7 +474,7 @@ class NotifierController extends Controller $i = 0; foreach ($modelsEnabled as $classname) { - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $uid @@ -496,10 +492,10 @@ class NotifierController extends Controller $tableNews = Yii::$app->db->schema->getTableSchema('news'); $tableCategoryNews = Yii::$app->db->schema->getTableSchema('news_categorie'); if (class_exists($classname) && $tableNews && $tableCategoryNews && isset($tableCategoryNews->columns['notify_category'])) { - /** @var \elitedivision\amos\news\AmosNews|null $newsModule */ - $newsModule = (class_exists('elitedivision\amos\news\AmosNews') ? \elitedivision\amos\news\AmosNews::instance() + /** @var \arter\amos\news\AmosNews|null $newsModule */ + $newsModule = (class_exists('arter\amos\news\AmosNews') ? \arter\amos\news\AmosNews::instance() : null); - $newsModelClassname = (!is_null($newsModule) ? $newsModule->model('News') : 'elitedivision\amos\news\models\News'); + $newsModelClassname = (!is_null($newsModule) ? $newsModule->model('News') : 'arter\amos\news\models\News'); if ($classname == $newsModelClassname) { /** @var Notification $notificationModel */ $notificationModel = $this->notifyModule->createModel('Notification'); @@ -613,9 +609,9 @@ class NotifierController extends Controller try { $moduleCommunity = \Yii::$app->getModule('community'); if (!empty($moduleCommunity)) { - $classnameId = \elitedivision\amos\core\models\ModelsClassname::find()->andWhere(['classname' => 'elitedivision\\amos\\community\\models\\Community'])->one(); + $classnameId = \arter\amos\core\models\ModelsClassname::find()->andWhere(['classname' => 'arter\\amos\\community\\models\\Community'])->one(); if (!empty($classnameId)) { - $class = 'elitedivision\amos\community\models\CommunityUserMm'; + $class = 'arter\amos\community\models\CommunityUserMm'; $search = $class::find()->andWhere(['user_id' => $user_id])->andWhere(['or', ['status' => 'GUEST'], ['role' => 'GUEST'] @@ -769,7 +765,7 @@ class NotifierController extends Controller /** @var ActiveQuery $queryBase */ $queryBase = $classname::find(); $queryBase->andWhere([$newsletterContentsConf->tablename.'.id' => $classnameContentIds]); - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $queryBase, 'userId' => $uid @@ -780,10 +776,10 @@ class NotifierController extends Controller $tableNews = Yii::$app->db->schema->getTableSchema('news'); $tableCategoryNews = Yii::$app->db->schema->getTableSchema('news_categorie'); if (class_exists($classname) && $tableNews && $tableCategoryNews && isset($tableCategoryNews->columns['notify_category'])) { - /** @var \elitedivision\amos\news\AmosNews|null $newsModule */ - $newsModule = (class_exists('elitedivision\amos\news\AmosNews') ? \elitedivision\amos\news\AmosNews::instance() + /** @var \arter\amos\news\AmosNews|null $newsModule */ + $newsModule = (class_exists('arter\amos\news\AmosNews') ? \arter\amos\news\AmosNews::instance() : null); - $newsModelClassname = (!is_null($newsModule) ? $newsModule->model('News') : 'elitedivision\amos\news\models\News'); + $newsModelClassname = (!is_null($newsModule) ? $newsModule->model('News') : 'arter\amos\news\models\News'); if ($classname == $newsModelClassname) { /** @var NewsletterContents $newsletterContentsModel */ $newsletterContentsModel = $this->notifyModule->createModel('NewsletterContents'); @@ -951,12 +947,12 @@ class NotifierController extends Controller [$notificationTable.'.user_id' => new Expression($notificationConfTable.'.user_id')]) ->andWhere(['channels' => $channelInternal]) ->andWhere([NotificationsRead::tableName().'.user_id' => null]) - ->andWhere([Notification::tableName().'.class_name' => \elitedivision\amos\comments\models\Comment::className()]) + ->andWhere([Notification::tableName().'.class_name' => \arter\amos\comments\models\Comment::className()]) ->andWhere(['>=', Notification::tableName().".created_at", new Expression("UNIX_TIMESTAMP('".$user['created_at']."')")]) ->andWhere(['>=', $notificationTable.".created_at", new Expression('IF('.$notificationConfTable.'.last_update_frequency is null, 0, UNIX_TIMESTAMP('.$notificationConfTable.'.last_update_frequency))')]); } return $query; -// BY FIELD(class_name, 'elitedivision\\amos\\events\\models\\Event', 'elitedivision\\amos\\news\\models\\News', 'elitedivision\\amos\\partnershipprofiles\\models\PartnershipProfiles', 'elitedivision\\amos\\discussioni\\models\\DiscussioniTopic'), class_name +// BY FIELD(class_name, 'arter\\amos\\events\\models\\Event', 'arter\\amos\\news\\models\\News', 'arter\\amos\\partnershipprofiles\\models\PartnershipProfiles', 'arter\\amos\\discussioni\\models\\DiscussioniTopic'), class_name } private function getOrderModelsToNotify() @@ -1095,11 +1091,11 @@ class NotifierController extends Controller } if (isset($cwhModule)) { - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); $andWhere = ""; $i = 0; foreach ($modelsEnabled as $classname) { - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $uid @@ -1110,7 +1106,7 @@ class NotifierController extends Controller $tableNews = Yii::$app->db->schema->getTableSchema('news'); $tableCategoryNews = Yii::$app->db->schema->getTableSchema('news_categorie'); if (class_exists($classname) && $tableNews && $tableCategoryNews && isset($tableCategoryNews->columns['notify_category'])) { - if ($classname == \elitedivision\amos\news\models\News::className()) { + if ($classname == \arter\amos\news\models\News::className()) { /** @var Notification $notificationModel */ $notificationModel = $this->notifyModule->createModel('Notification'); $newsNotNotificationNotToSend = $notificationModel::find() diff --git a/src/commands/UserNotificationController.php b/src/commands/UserNotificationController.php index c7e7239..738f7bd 100755 --- a/src/commands/UserNotificationController.php +++ b/src/commands/UserNotificationController.php @@ -1,41 +1,37 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\commands + * @package arter\amos\notificationmanager\commands * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\commands; - -use elitedivision\amos\admin\AmosAdmin; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\utility\NotifyUtility; -use elitedivision\amos\notificationmanager\base\builder\AMailBuilder; -use elitedivision\amos\notificationmanager\base\BuilderFactory; -use elitedivision\amos\notificationmanager\models\Notification; -use elitedivision\amos\notificationmanager\models\NotificationChannels; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; -use elitedivision\amos\notificationmanager\models\base\NotificationSendEmail; -use elitedivision\amos\notificationmanager\models\NotificationsSent; -use elitedivision\amos\admin\base\ConfigurationManager; -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\admin\utility\UserProfileUtility; -use elitedivision\amos\admin\models\UserContact; -use elitedivision\amos\community\AmosCommunity; -use elitedivision\amos\community\models\CommunityUserMm; -use elitedivision\amos\cwh\models\CwhTagOwnerInterestMm; -use elitedivision\amos\core\user\User; -use elitedivision\amos\core\models\base\ContentLikes; -use elitedivision\amos\core\models\base\ModelsClassname; -use elitedivision\amos\comments\models\Comment; +namespace arter\amos\notificationmanager\commands; + +use arter\amos\admin\AmosAdmin; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\utility\NotifyUtility; +use arter\amos\notificationmanager\base\builder\AMailBuilder; +use arter\amos\notificationmanager\base\BuilderFactory; +use arter\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\models\NotificationChannels; +use arter\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\notificationmanager\models\base\NotificationSendEmail; +use arter\amos\notificationmanager\models\NotificationsSent; +use arter\amos\admin\base\ConfigurationManager; +use arter\amos\admin\models\UserProfile; +use arter\amos\admin\utility\UserProfileUtility; +use arter\amos\admin\models\UserContact; +use arter\amos\community\AmosCommunity; +use arter\amos\community\models\CommunityUserMm; +use arter\amos\cwh\models\CwhTagOwnerInterestMm; +use arter\amos\core\user\User; +use arter\amos\core\models\base\ContentLikes; +use arter\amos\core\models\base\ModelsClassname; +use arter\amos\comments\models\Comment; use Yii; use yii\db\Query; use yii\console\Controller; @@ -44,7 +40,7 @@ use yii\helpers\Console; /** * Class UserNotificationController - * @package elitedivision\amos\notificationmanager\controllers + * @package arter\amos\notificationmanager\controllers */ class UserNotificationController extends NotifierController { @@ -189,7 +185,7 @@ class UserNotificationController extends NotifierController Console::stdout($queryId->createCommand()->rawSql. PHP_EOL); //exit; Console::stdout('$queryId - trovati ' . count($res) . ' su un totale di ' . $howMany . PHP_EOL); //return; } // $debugMe - $results['view_profile']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['view_profile']['arter\amos\admin\models\UserProfile'] = $res; } @@ -349,7 +345,7 @@ class UserNotificationController extends NotifierController // A Utenti nelle tue community con almeno un tag che combacia $res = $this->findUserNewContactsCommunityA($uid, $uidsAlreadyIn, $debugMe); if (count($res) > 0) { - $results['community']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['community']['arter\amos\admin\models\UserProfile'] = $res; } @@ -357,7 +353,7 @@ class UserNotificationController extends NotifierController // B Utenti interessati ai contenuti - hanno commentato $res = $this->findUserNewContactsCommentsB($uid, $uidsAlreadyIn, $debugMe); if (count($res) > 0) { - $results['comments']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['comments']['arter\amos\admin\models\UserProfile'] = $res; } @@ -384,7 +380,7 @@ class UserNotificationController extends NotifierController ->andWhere([UserProfile::tableName() . '.user_id' => $contactUserIds]) ->limit($module->usersLimit); $res = $queryId->all(); - $results['network']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['network']['arter\amos\admin\models\UserProfile'] = $res; } @@ -392,7 +388,7 @@ class UserNotificationController extends NotifierController // D Utenti in una delle mie organizzazioni $res = $this->findUserNewContactsOrganizzationD($uid, $uidsAlreadyIn, $debugMe); if (count($res) > 0) { - $results['organizations']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['organizations']['arter\amos\admin\models\UserProfile'] = $res; } return $results; @@ -406,13 +402,13 @@ class UserNotificationController extends NotifierController $module = AmosNotify::getInstance(); if ($moduleOrganizzation) { $moClass = $moduleOrganizzation->getOrganizationModelClass(); - $isAmosOrganizzazioni = ($moClass == 'elitedivision\amos\organizzazioni\models\Profilo'); + $isAmosOrganizzazioni = ($moClass == 'arter\amos\organizzazioni\models\Profilo'); $isOiOrganizations = ($moClass == 'openinnovation\organizations\models\Organizations'); if (!$isAmosOrganizzazioni && !$isOiOrganizations) { Console::stdout('Error: organizzation '. $moClass . ' is not managed.' . PHP_EOL); //return; return []; // funziona solo con quei due } - $moMMtable = ($isAmosOrganizzazioni) ? \elitedivision\amos\organizzazioni\models\ProfiloUserMm::tableName() + $moMMtable = ($isAmosOrganizzazioni) ? \arter\amos\organizzazioni\models\ProfiloUserMm::tableName() : \openinnovation\organizations\models\OrganizationsUserMm::tableName(); $moOrganizzationRelField = ($isAmosOrganizzazioni) ? 'profilo_id' : 'organization_id'; $moUserRelField = 'user_id'; @@ -456,10 +452,10 @@ class UserNotificationController extends NotifierController $idsUsers = []; $module = AmosNotify::getInstance(); - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); foreach ($modelsEnabled as $classname) { //Console::stdout('findUserNewContacts - $modelsEnabled $classname ' . $classname . PHP_EOL); - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, [ + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $uid ]); @@ -534,7 +530,7 @@ class UserNotificationController extends NotifierController $queryId = CwhTagOwnerInterestMm::find() ->select(CwhTagOwnerInterestMm::tableName() . '.tag_id') ->distinct() - ->where(['classname' => 'elitedivision\amos\admin\models\UserProfile']) + ->where(['classname' => 'arter\amos\admin\models\UserProfile']) ->andWhere(['record_id' => $uid]); $myTagsIds = $queryId->column(); //pr($myTagsIds, '$myTagsIds'); //exit; @@ -552,7 +548,7 @@ class UserNotificationController extends NotifierController CommunityUserMm::tableName() . '.user_id' => new \yii\db\Expression(UserProfile::tableName() . '.user_id') ]) ->innerJoin(CwhTagOwnerInterestMm::tableName(), [ - CwhTagOwnerInterestMm::tableName() . '.classname' => 'elitedivision\amos\admin\models\UserProfile', + CwhTagOwnerInterestMm::tableName() . '.classname' => 'arter\amos\admin\models\UserProfile', CwhTagOwnerInterestMm::tableName() . '.record_id' => new \yii\db\Expression(UserProfile::tableName() . '.id'), CwhTagOwnerInterestMm::tableName() . '.tag_id' => $myTagsIds, ]) @@ -725,10 +721,10 @@ class UserNotificationController extends NotifierController $idsCountsGlobal = []; $module = AmosNotify::getInstance(); - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); foreach ($modelsEnabled as $classname) { Console::stdout('findUserContentRead - $modelsEnabled $classname ' . $classname . PHP_EOL); - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, [ + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $uid ]); @@ -800,7 +796,7 @@ class UserNotificationController extends NotifierController Comment::tableName() . '.context' => $classname ]) ->where([ - Notification::tableName() . '.class_name' => \elitedivision\amos\comments\models\Comment::className(), + Notification::tableName() . '.class_name' => \arter\amos\comments\models\Comment::className(), Notification::tableName() . '.channels' => NotificationChannels::CHANNEL_MAIL ]) ->andWhere([Comment::tableName() . '.context_id' => $ids]) @@ -974,12 +970,12 @@ class UserNotificationController extends NotifierController if (!empty($notificationconf)) { if (isset($cwhModule)) { - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); $andWhere = ""; $i = 0; foreach ($modelsEnabled as $classname) { //Console::stdout('notifyToSleepingUsers - $modelsEnabled $classname ' . $classname . PHP_EOL); - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, [ + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $uid ]); diff --git a/src/config/config.php b/src/config/config.php index e185e9e..51b2ee5 100755 --- a/src/config/config.php +++ b/src/config/config.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ return [ diff --git a/src/controllers/DefaultController.php b/src/controllers/DefaultController.php index f796c6b..7307fc7 100755 --- a/src/controllers/DefaultController.php +++ b/src/controllers/DefaultController.php @@ -1,24 +1,20 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\controllers - * @author Lombardia Informatica S.p.A. + * @package arter\amos\notificationmanager\controllers */ -namespace elitedivision\amos\notificationmanager\controllers; +namespace arter\amos\notificationmanager\controllers; -use elitedivision\amos\dashboard\controllers\base\DashboardController; +use arter\amos\dashboard\controllers\base\DashboardController; /** * Class DefaultController - * @package elitedivision\amos\notificationmanager\controllers + * @package arter\amos\notificationmanager\controllers */ class DefaultController extends DashboardController { diff --git a/src/controllers/NewsletterController.php b/src/controllers/NewsletterController.php index a18c663..4bdd12c 100755 --- a/src/controllers/NewsletterController.php +++ b/src/controllers/NewsletterController.php @@ -1,36 +1,32 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\controllers - * @author Lombardia Informatica S.p.A. + * @package arter\amos\notificationmanager\controllers */ -namespace elitedivision\amos\notificationmanager\controllers; +namespace arter\amos\notificationmanager\controllers; -use elitedivision\amos\core\forms\editors\m2mWidget\controllers\M2MWidgetControllerTrait; -use elitedivision\amos\core\forms\editors\m2mWidget\M2MEventsEnum; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\icons\AmosIcons; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\module\BaseAmosModule; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\utilities\SortModelsUtility; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\base\builder\NewsletterBuilder; -use elitedivision\amos\notificationmanager\exceptions\NewsletterException; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\models\NewsletterContents; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; -use elitedivision\amos\notificationmanager\utility\NewsletterUtility; +use arter\amos\core\forms\editors\m2mWidget\controllers\M2MWidgetControllerTrait; +use arter\amos\core\forms\editors\m2mWidget\M2MEventsEnum; +use arter\amos\core\helpers\Html; +use arter\amos\core\icons\AmosIcons; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\module\BaseAmosModule; +use arter\amos\core\record\Record; +use arter\amos\core\utilities\SortModelsUtility; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\base\builder\NewsletterBuilder; +use arter\amos\notificationmanager\exceptions\NewsletterException; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\models\NewsletterContents; +use arter\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\notificationmanager\utility\NewsletterUtility; use yii\db\ActiveQuery; use yii\filters\AccessControl; use yii\filters\VerbFilter; @@ -44,7 +40,7 @@ use yii\web\NotFoundHttpException; * This is the class for controller "NewsletterController". * @package backend\amos\notify\controllers */ -class NewsletterController extends \elitedivision\amos\notificationmanager\controllers\base\NewsletterController +class NewsletterController extends \arter\amos\notificationmanager\controllers\base\NewsletterController { /** * M2MWidgetControllerTrait diff --git a/src/controllers/base/NewsletterController.php b/src/controllers/base/NewsletterController.php index 29470ea..38ed81a 100755 --- a/src/controllers/base/NewsletterController.php +++ b/src/controllers/base/NewsletterController.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\controllers\base - * @author Lombardia Informatica S.p.A. + * @package arter\amos\notificationmanager\controllers\base */ -namespace elitedivision\amos\notificationmanager\controllers\base; +namespace arter\amos\notificationmanager\controllers\base; -use elitedivision\amos\core\controllers\CrudController; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\icons\AmosIcons; -use elitedivision\amos\core\module\BaseAmosModule; -use elitedivision\amos\dashboard\controllers\TabDashboardControllerTrait; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\controllers\CrudController; +use arter\amos\core\helpers\Html; +use arter\amos\core\icons\AmosIcons; +use arter\amos\core\module\BaseAmosModule; +use arter\amos\dashboard\controllers\TabDashboardControllerTrait; +use arter\amos\notificationmanager\AmosNotify; use Yii; use yii\helpers\Url; @@ -27,10 +23,10 @@ use yii\helpers\Url; * Class NewsletterController * NewsletterController implements the CRUD actions for Newsletter model. * - * @property \elitedivision\amos\notificationmanager\models\Newsletter $model - * @property \elitedivision\amos\notificationmanager\models\search\NewsletterSearch $modelSearch + * @property \arter\amos\notificationmanager\models\Newsletter $model + * @property \arter\amos\notificationmanager\models\search\NewsletterSearch $modelSearch * - * @package elitedivision\amos\notificationmanager\controllers\base + * @package arter\amos\notificationmanager\controllers\base */ class NewsletterController extends CrudController { @@ -92,7 +88,7 @@ class NewsletterController extends CrudController } /** - * Set a view param used in \elitedivision\amos\core\forms\CreateNewButtonWidget + * Set a view param used in \arter\amos\core\forms\CreateNewButtonWidget */ private function setCreateNewBtnLabel() { diff --git a/src/exceptions/NewsletterException.php b/src/exceptions/NewsletterException.php index 37b3068..f0c459e 100755 --- a/src/exceptions/NewsletterException.php +++ b/src/exceptions/NewsletterException.php @@ -1,24 +1,20 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\exceptions - * @author Lombardia Informatica S.p.A. + * @package arter\amos\notificationmanager\exceptions */ -namespace elitedivision\amos\notificationmanager\exceptions; +namespace arter\amos\notificationmanager\exceptions; -use elitedivision\amos\core\exceptions\AmosException; +use arter\amos\core\exceptions\AmosException; /** * Class NewsletterException - * @package elitedivision\amos\notificationmanager\exceptions + * @package arter\amos\notificationmanager\exceptions */ class NewsletterException extends AmosException { diff --git a/src/forms/NewsWidget.php b/src/forms/NewsWidget.php index b149280..696e5e6 100755 --- a/src/forms/NewsWidget.php +++ b/src/forms/NewsWidget.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * * @package piattaforma-openinnovation * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\forms; +namespace arter\amos\notificationmanager\forms; -use elitedivision\amos\notificationmanager\record\NotifyRecord; +use arter\amos\notificationmanager\record\NotifyRecord; use yii\base\Widget; use yii\bootstrap\Html; /** * Class NewsWidget - * @package elitedivision\amos\notificationmanager\forms + * @package arter\amos\notificationmanager\forms */ class NewsWidget extends Widget { diff --git a/src/i18n/en-GB/messages.php b/src/i18n/en-GB/messages.php index a7200cc..897a8ec 100755 --- a/src/i18n/en-GB/messages.php +++ b/src/i18n/en-GB/messages.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\comments\i18n\en-GB + * @package arter\amos\comments\i18n\en-GB * @category CategoryName - * @author Lombardia Informatica S.p.A. */ return [ diff --git a/src/i18n/en-US/messages.php b/src/i18n/en-US/messages.php index 2ebcfe0..9445eb9 100755 --- a/src/i18n/en-US/messages.php +++ b/src/i18n/en-US/messages.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\comments\i18n\en-US + * @package arter\amos\comments\i18n\en-US * @category CategoryName - * @author Lombardia Informatica S.p.A. */ return [ diff --git a/src/i18n/it-IT/messages.php b/src/i18n/it-IT/messages.php index 491587c..a4502fb 100755 --- a/src/i18n/it-IT/messages.php +++ b/src/i18n/it-IT/messages.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\comments\i18n\it-IT + * @package arter\amos\comments\i18n\it-IT * @category CategoryName - * @author Lombardia Informatica S.p.A. */ return [ diff --git a/src/listeners/NotifyWorkflowListener.php b/src/listeners/NotifyWorkflowListener.php index 84ea574..1663947 100755 --- a/src/listeners/NotifyWorkflowListener.php +++ b/src/listeners/NotifyWorkflowListener.php @@ -1,26 +1,22 @@ <?php -namespace elitedivision\amos\notificationmanager\listeners; +namespace arter\amos\notificationmanager\listeners; /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * * @package piattaforma-openinnovation * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\base\BuilderFactory; -use elitedivision\amos\notificationmanager\models\ChangeStatusEmail; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\record\NotifyRecordInterface; +use arter\amos\core\record\Record; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\base\BuilderFactory; +use arter\amos\notificationmanager\models\ChangeStatusEmail; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\record\NotifyRecordInterface; use ReflectionClass; use Yii; use yii\base\Exception; diff --git a/src/migrations/m170209_173549_init_notify.php b/src/migrations/m170209_173549_init_notify.php index acb1e4e..0c277ba 100755 --- a/src/migrations/m170209_173549_init_notify.php +++ b/src/migrations/m170209_173549_init_notify.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ diff --git a/src/migrations/m171126_151749_notification_send_email.php b/src/migrations/m171126_151749_notification_send_email.php index d50602f..60721f4 100755 --- a/src/migrations/m171126_151749_notification_send_email.php +++ b/src/migrations/m171126_151749_notification_send_email.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ diff --git a/src/migrations/m181126_162427_notification_send_email_permissions.php b/src/migrations/m181126_162427_notification_send_email_permissions.php index 87cb316..c142193 100755 --- a/src/migrations/m181126_162427_notification_send_email_permissions.php +++ b/src/migrations/m181126_162427_notification_send_email_permissions.php @@ -1,5 +1,5 @@ <?php -use elitedivision\amos\core\migration\AmosMigrationPermissions; +use arter\amos\core\migration\AmosMigrationPermissions; use yii\rbac\Permission; diff --git a/src/migrations/m190902_155031_insert_missing_user_notifications_confs.php b/src/migrations/m190902_155031_insert_missing_user_notifications_confs.php index 579a8fc..180818b 100755 --- a/src/migrations/m190902_155031_insert_missing_user_notifications_confs.php +++ b/src/migrations/m190902_155031_insert_missing_user_notifications_confs.php @@ -1,21 +1,17 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationsConfOpt; use yii\db\ActiveQuery; use yii\db\Migration; use yii\db\Query; diff --git a/src/migrations/m191014_110000_add_more_fields_notification_conf.php b/src/migrations/m191014_110000_add_more_fields_notification_conf.php index 5793614..619bc4f 100755 --- a/src/migrations/m191014_110000_add_more_fields_notification_conf.php +++ b/src/migrations/m191014_110000_add_more_fields_notification_conf.php @@ -8,7 +8,7 @@ class m191014_110000_add_more_fields_notification_conf extends Migration public function safeUp() { - $defaultValueEmail = elitedivision\amos\notificationmanager\widgets\NotifyFrequencyAdvancedWidget::DEFAULT_EMAIL_FREQUENCY; + $defaultValueEmail = arter\amos\notificationmanager\widgets\NotifyFrequencyAdvancedWidget::DEFAULT_EMAIL_FREQUENCY; $this->addColumn(self::TABLE, 'profilo_successo_email' ,$this->integer(1)->defaultValue($defaultValueEmail)->after('sms')); $this->addColumn(self::TABLE, 'contenuti_successo_email' ,$this->integer(1)->defaultValue($defaultValueEmail)->after('sms')); $this->addColumn(self::TABLE, 'periodo_inattivita_flag' ,$this->integer(1)->defaultValue(1)->after('sms')); diff --git a/src/migrations/m191017_110000_create_notificationsent.php b/src/migrations/m191017_110000_create_notificationsent.php index b2d7163..bd9919f 100755 --- a/src/migrations/m191017_110000_create_notificationsent.php +++ b/src/migrations/m191017_110000_create_notificationsent.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ diff --git a/src/migrations/m191021_163740_notification_content_language_permissions.php b/src/migrations/m191021_163740_notification_content_language_permissions.php index 30ff574..2be479d 100755 --- a/src/migrations/m191021_163740_notification_content_language_permissions.php +++ b/src/migrations/m191021_163740_notification_content_language_permissions.php @@ -1,5 +1,5 @@ <?php -use elitedivision\amos\core\migration\AmosMigrationPermissions; +use arter\amos\core\migration\AmosMigrationPermissions; use yii\rbac\Permission; diff --git a/src/migrations/m191022_160214_notification_language_preferences_permissions.php b/src/migrations/m191022_160214_notification_language_preferences_permissions.php index a1ee874..0535436 100755 --- a/src/migrations/m191022_160214_notification_language_preferences_permissions.php +++ b/src/migrations/m191022_160214_notification_language_preferences_permissions.php @@ -1,5 +1,5 @@ <?php -use elitedivision\amos\core\migration\AmosMigrationPermissions; +use arter\amos\core\migration\AmosMigrationPermissions; use yii\rbac\Permission; diff --git a/src/migrations/m200424_164524_create_table_newsletter_contents_conf.php b/src/migrations/m200424_164524_create_table_newsletter_contents_conf.php index 0a1c937..2bb201f 100755 --- a/src/migrations/m200424_164524_create_table_newsletter_contents_conf.php +++ b/src/migrations/m200424_164524_create_table_newsletter_contents_conf.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationTableCreation; +use arter\amos\core\migration\AmosMigrationTableCreation; /** * Class m200424_164524_create_table_newsletter_contents_conf diff --git a/src/migrations/m200424_181208_create_table_newsletter.php b/src/migrations/m200424_181208_create_table_newsletter.php index 429d554..c096387 100755 --- a/src/migrations/m200424_181208_create_table_newsletter.php +++ b/src/migrations/m200424_181208_create_table_newsletter.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationTableCreation; +use arter\amos\core\migration\AmosMigrationTableCreation; /** * Class m200424_181208_create_table_newsletter diff --git a/src/migrations/m200424_184914_create_table_newsletter_contents.php b/src/migrations/m200424_184914_create_table_newsletter_contents.php index 862defa..3ea6746 100755 --- a/src/migrations/m200424_184914_create_table_newsletter_contents.php +++ b/src/migrations/m200424_184914_create_table_newsletter_contents.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationTableCreation; +use arter\amos\core\migration\AmosMigrationTableCreation; /** * Class m200424_184914_create_table_newsletter_contents diff --git a/src/migrations/m200428_162835_newsletter_permissions.php b/src/migrations/m200428_162835_newsletter_permissions.php index 4effe8e..7b525a7 100755 --- a/src/migrations/m200428_162835_newsletter_permissions.php +++ b/src/migrations/m200428_162835_newsletter_permissions.php @@ -1,24 +1,20 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\events\migrations + * @package arter\amos\events\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationPermissions; -use elitedivision\amos\notificationmanager\rules\DeleteOwnNewsletterRule; -use elitedivision\amos\notificationmanager\rules\UpdateOwnNewsletterRule; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterAll; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterCreatedBy; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterDashboard; +use arter\amos\core\migration\AmosMigrationPermissions; +use arter\amos\notificationmanager\rules\DeleteOwnNewsletterRule; +use arter\amos\notificationmanager\rules\UpdateOwnNewsletterRule; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterAll; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterCreatedBy; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterDashboard; use yii\helpers\ArrayHelper; use yii\rbac\Permission; diff --git a/src/migrations/m200429_071951_newsletter_widget.php b/src/migrations/m200429_071951_newsletter_widget.php index 211774b..81b591c 100755 --- a/src/migrations/m200429_071951_newsletter_widget.php +++ b/src/migrations/m200429_071951_newsletter_widget.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationWidgets; -use elitedivision\amos\dashboard\models\AmosWidgets; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterAll; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterCreatedBy; -use elitedivision\amos\notificationmanager\widgets\icons\WidgetIconNewsletterDashboard; +use arter\amos\core\migration\AmosMigrationWidgets; +use arter\amos\dashboard\models\AmosWidgets; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterAll; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterCreatedBy; +use arter\amos\notificationmanager\widgets\icons\WidgetIconNewsletterDashboard; /** * Class m200429_071951_newsletter_widget diff --git a/src/migrations/m200504_141348_create_newsletter_workflow.php b/src/migrations/m200504_141348_create_newsletter_workflow.php index fd6dfd6..38360f4 100755 --- a/src/migrations/m200504_141348_create_newsletter_workflow.php +++ b/src/migrations/m200504_141348_create_newsletter_workflow.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationWorkflow; +use arter\amos\core\migration\AmosMigrationWorkflow; use yii\helpers\ArrayHelper; /** diff --git a/src/migrations/m200508_163240_newsletter_workflow_permissions.php b/src/migrations/m200508_163240_newsletter_workflow_permissions.php index 107c586..2482e94 100755 --- a/src/migrations/m200508_163240_newsletter_workflow_permissions.php +++ b/src/migrations/m200508_163240_newsletter_workflow_permissions.php @@ -1,20 +1,16 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationPermissions; -use elitedivision\amos\notificationmanager\models\Newsletter; +use arter\amos\core\migration\AmosMigrationPermissions; +use arter\amos\notificationmanager\models\Newsletter; use yii\rbac\Permission; /** diff --git a/src/migrations/m201022_223813_add_notificationconf_field_1.php b/src/migrations/m201022_223813_add_notificationconf_field_1.php index 256a64a..308b5f9 100755 --- a/src/migrations/m201022_223813_add_notificationconf_field_1.php +++ b/src/migrations/m201022_223813_add_notificationconf_field_1.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationConf; use yii\db\Migration; /** diff --git a/src/migrations/m201023_104757_add_notificationconf_field_2.php b/src/migrations/m201023_104757_add_notificationconf_field_2.php index 04ae88f..5b1878a 100755 --- a/src/migrations/m201023_104757_add_notificationconf_field_2.php +++ b/src/migrations/m201023_104757_add_notificationconf_field_2.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationConf; use yii\db\Migration; /** diff --git a/src/migrations/m201027_174300_add_notification_field_1.php b/src/migrations/m201027_174300_add_notification_field_1.php index 922fa8b..daccc04 100755 --- a/src/migrations/m201027_174300_add_notification_field_1.php +++ b/src/migrations/m201027_174300_add_notification_field_1.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\models\Notification; use yii\db\Migration; /** diff --git a/src/migrations/m201111_145608_create_table_notification_conf_content.php b/src/migrations/m201111_145608_create_table_notification_conf_content.php index 025dd4b..0450c95 100755 --- a/src/migrations/m201111_145608_create_table_notification_conf_content.php +++ b/src/migrations/m201111_145608_create_table_notification_conf_content.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationTableCreation; +use arter\amos\core\migration\AmosMigrationTableCreation; use yii\db\Migration; use yii\db\Schema; diff --git a/src/migrations/m201112_105114_notification_conf_content_permissions.php b/src/migrations/m201112_105114_notification_conf_content_permissions.php index bf0b66f..48e37c8 100755 --- a/src/migrations/m201112_105114_notification_conf_content_permissions.php +++ b/src/migrations/m201112_105114_notification_conf_content_permissions.php @@ -1,5 +1,5 @@ <?php -use elitedivision\amos\core\migration\AmosMigrationPermissions; +use arter\amos\core\migration\AmosMigrationPermissions; use yii\rbac\Permission; diff --git a/src/migrations/m201204_120220_fix_newsletter_workflow.php b/src/migrations/m201204_120220_fix_newsletter_workflow.php index ae9ebde..574e9b9 100755 --- a/src/migrations/m201204_120220_fix_newsletter_workflow.php +++ b/src/migrations/m201204_120220_fix_newsletter_workflow.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\migrations + * @package arter\amos\notify\migrations * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\migration\AmosMigrationWorkflow; +use arter\amos\core\migration\AmosMigrationWorkflow; /** * Class m201204_120220_fix_newsletter_workflow diff --git a/src/models/ChangeStatusEmail.php b/src/models/ChangeStatusEmail.php index 84eb0b8..ccd685f 100755 --- a/src/models/ChangeStatusEmail.php +++ b/src/models/ChangeStatusEmail.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use yii\base\BaseObject; @@ -23,7 +19,7 @@ use yii\base\BaseObject; * * Model used to create a custom email on change workflow status * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ class ChangeStatusEmail extends BaseObject { diff --git a/src/models/Newsletter.php b/src/models/Newsletter.php index 610306b..18546f5 100755 --- a/src/models/Newsletter.php +++ b/src/models/Newsletter.php @@ -1,24 +1,20 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\utility\NewsletterUtility; -use elitedivision\amos\workflow\behaviors\WorkflowLogFunctionsBehavior; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\utility\NewsletterUtility; +use arter\amos\workflow\behaviors\WorkflowLogFunctionsBehavior; use raoul2000\workflow\base\SimpleWorkflowBehavior; use yii\db\ActiveQuery; use yii\db\Query; @@ -28,11 +24,11 @@ use yii\helpers\ArrayHelper; * Class Newsletter * This is the model class for table "notification_newsletter". * - * @method \elitedivision\amos\core\workflow\ContentDefaultWorkflowDbSource getWorkflowSource() + * @method \arter\amos\core\workflow\ContentDefaultWorkflowDbSource getWorkflowSource() * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ -class Newsletter extends \elitedivision\amos\notificationmanager\models\base\Newsletter +class Newsletter extends \arter\amos\notificationmanager\models\base\Newsletter { // Workflow constants const WORKFLOW_ID = 'NewsletterWorkflow'; diff --git a/src/models/NewsletterContents.php b/src/models/NewsletterContents.php index cfd76fe..daf0c17 100755 --- a/src/models/NewsletterContents.php +++ b/src/models/NewsletterContents.php @@ -1,31 +1,27 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; use yii\db\ActiveQuery; /** * Class NewsletterContents * This is the model class for table "notification_newsletter_contents". - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ -class NewsletterContents extends \elitedivision\amos\notificationmanager\models\base\NewsletterContents +class NewsletterContents extends \arter\amos\notificationmanager\models\base\NewsletterContents { /** * @inheritdoc diff --git a/src/models/NewsletterContentsConf.php b/src/models/NewsletterContentsConf.php index a878e2b..3295576 100755 --- a/src/models/NewsletterContentsConf.php +++ b/src/models/NewsletterContentsConf.php @@ -1,29 +1,25 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * Class NewsletterContentsConf * This is the model class for table "notification_newsletter_contents_conf". - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ -class NewsletterContentsConf extends \elitedivision\amos\notificationmanager\models\base\NewsletterContentsConf +class NewsletterContentsConf extends \arter\amos\notificationmanager\models\base\NewsletterContentsConf { /** * @inheritdoc diff --git a/src/models/Notification.php b/src/models/Notification.php index 763545c..589a8e6 100755 --- a/src/models/Notification.php +++ b/src/models/Notification.php @@ -1,21 +1,17 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; @@ -35,9 +31,9 @@ use yii\db\ActiveRecord; * @property integer $created_at * @property integer $updated_at * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ -class Notification extends \elitedivision\amos\core\record\Record +class Notification extends \arter\amos\core\record\Record { /** * @inheritdoc diff --git a/src/models/NotificationChannels.php b/src/models/NotificationChannels.php index fd71c49..8705e1c 100755 --- a/src/models/NotificationChannels.php +++ b/src/models/NotificationChannels.php @@ -1,28 +1,24 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify\models + * @package arter\amos\notify\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; use yii\base\BaseObject; use yii\db\Query; /** * Class NotificationChannels - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ class NotificationChannels extends BaseObject { diff --git a/src/models/NotificationConf.php b/src/models/NotificationConf.php index f336ea6..479506e 100755 --- a/src/models/NotificationConf.php +++ b/src/models/NotificationConf.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\admin\AmosAdmin; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\admin\AmosAdmin; +use arter\amos\notificationmanager\AmosNotify; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; @@ -48,11 +44,11 @@ use yii\db\ActiveRecord; * @property integer $deleted_by * @property integer $version * - * @property \elitedivision\amos\core\user\User $user + * @property \arter\amos\core\user\User $user * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ -class NotificationConf extends \elitedivision\amos\core\record\Record +class NotificationConf extends \arter\amos\core\record\Record { /** * @var AmosNotify $notifyModule diff --git a/src/models/NotificationConfContent.php b/src/models/NotificationConfContent.php index 80d2a65..7fa25dd 100755 --- a/src/models/NotificationConfContent.php +++ b/src/models/NotificationConfContent.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use Yii; use yii\helpers\ArrayHelper; @@ -8,7 +8,7 @@ use yii\helpers\ArrayHelper; /** * This is the model class for table "notification_conf_content". */ -class NotificationConfContent extends \elitedivision\amos\notificationmanager\models\base\NotificationConfContent +class NotificationConfContent extends \arter\amos\notificationmanager\models\base\NotificationConfContent { public function representingColumn() { @@ -27,7 +27,6 @@ class NotificationConfContent extends \elitedivision\amos\notificationmanager\mo * Returns the text hint for the specified attribute. * @param string $attribute the attribute name * @return string the attribute hint - * @see attributeHints */ public function getAttributeHint($attribute) { diff --git a/src/models/NotificationContentLanguage.php b/src/models/NotificationContentLanguage.php index ae6b3b6..312ca99 100755 --- a/src/models/NotificationContentLanguage.php +++ b/src/models/NotificationContentLanguage.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use Yii; use yii\helpers\ArrayHelper; @@ -8,7 +8,7 @@ use yii\helpers\ArrayHelper; /** * This is the model class for table "notification_content_language". */ -class NotificationContentLanguage extends \elitedivision\amos\notificationmanager\models\base\NotificationContentLanguage +class NotificationContentLanguage extends \arter\amos\notificationmanager\models\base\NotificationContentLanguage { public function representingColumn() { @@ -27,7 +27,6 @@ class NotificationContentLanguage extends \elitedivision\amos\notificationmanage * Returns the text hint for the specified attribute. * @param string $attribute the attribute name * @return string the attribute hint - * @see attributeHints */ public function getAttributeHint($attribute) { diff --git a/src/models/NotificationLanguagePreferences.php b/src/models/NotificationLanguagePreferences.php index 0e31a51..f9e91e9 100755 --- a/src/models/NotificationLanguagePreferences.php +++ b/src/models/NotificationLanguagePreferences.php @@ -1,13 +1,13 @@ <?php -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "notification_language_preferences". */ -class NotificationLanguagePreferences extends \elitedivision\amos\notificationmanager\models\base\NotificationLanguagePreferences{ +class NotificationLanguagePreferences extends \arter\amos\notificationmanager\models\base\NotificationLanguagePreferences{ public function representingColumn() { return [ @@ -24,7 +24,6 @@ return [ * Returns the text hint for the specified attribute. * @param string $attribute the attribute name * @return string the attribute hint -* @see attributeHints */ public function getAttributeHint($attribute) { $hints = $this->attributeHints(); diff --git a/src/models/NotificationSendEmail.php b/src/models/NotificationSendEmail.php index 423712b..0b6a45f 100755 --- a/src/models/NotificationSendEmail.php +++ b/src/models/NotificationSendEmail.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; ; use Yii; @@ -9,7 +9,7 @@ use yii\helpers\ArrayHelper; /** * This is the model class for table "notification_send_email". */ -class NotificationSendEmail extends \elitedivision\amos\notificationmanager\models\base\NotificationSendEmail +class NotificationSendEmail extends \arter\amos\notificationmanager\models\base\NotificationSendEmail { public function representingColumn() { @@ -28,7 +28,6 @@ class NotificationSendEmail extends \elitedivision\amos\notificationmanager\mode * Returns the text hint for the specified attribute. * @param string $attribute the attribute name * @return string the attribute hint - * @see attributeHints */ public function getAttributeHint($attribute) { diff --git a/src/models/NotificationconfNetwork.php b/src/models/NotificationconfNetwork.php index c73e202..45e27b0 100755 --- a/src/models/NotificationconfNetwork.php +++ b/src/models/NotificationconfNetwork.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use Yii; use yii\helpers\ArrayHelper; @@ -8,7 +8,7 @@ use yii\helpers\ArrayHelper; /** * This is the model class for table "notificationconf_network". */ -class NotificationconfNetwork extends \elitedivision\amos\notificationmanager\models\base\NotificationconfNetwork +class NotificationconfNetwork extends \arter\amos\notificationmanager\models\base\NotificationconfNetwork { public function representingColumn() { @@ -27,7 +27,6 @@ class NotificationconfNetwork extends \elitedivision\amos\notificationmanager\mo * Returns the text hint for the specified attribute. * @param string $attribute the attribute name * @return string the attribute hint - * @see attributeHints */ public function getAttributeHint($attribute) { diff --git a/src/models/NotificationsConfOpt.php b/src/models/NotificationsConfOpt.php index d98a05a..b1e13ba 100755 --- a/src/models/NotificationsConfOpt.php +++ b/src/models/NotificationsConfOpt.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; use yii\base\BaseObject; /** * Class NotificationsConfOpt - * @package elitedivision\amos\notificationmanager\models + * @package arter\amos\notificationmanager\models */ class NotificationsConfOpt extends BaseObject { diff --git a/src/models/NotificationsRead.php b/src/models/NotificationsRead.php index bf24a82..a047a55 100755 --- a/src/models/NotificationsRead.php +++ b/src/models/NotificationsRead.php @@ -1,27 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use yii\db\ActiveRecord; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "notificationread". * - * @author - * @property integer $id * @property integer $user_id * @property integer notification_id @@ -29,7 +24,7 @@ use yii\behaviors\TimestampBehavior; * @property integer $updated_at */ -class NotificationsRead extends \elitedivision\amos\core\record\Record +class NotificationsRead extends \arter\amos\core\record\Record { diff --git a/src/models/NotificationsSent.php b/src/models/NotificationsSent.php index e38c6cb..4ce2c3e 100755 --- a/src/models/NotificationsSent.php +++ b/src/models/NotificationsSent.php @@ -1,27 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models; +namespace arter\amos\notificationmanager\models; use yii\db\ActiveRecord; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "notificationsent". * - * @author - * @property integer $id * @property integer $user_id * @property integer $type @@ -30,7 +25,7 @@ use yii\behaviors\TimestampBehavior; * @property integer $updated_at */ -class NotificationsSent extends \elitedivision\amos\core\record\Record +class NotificationsSent extends \arter\amos\core\record\Record { //const diff --git a/src/models/base/Newsletter.php b/src/models/base/Newsletter.php index d9a2a72..347a2f4 100755 --- a/src/models/base/Newsletter.php +++ b/src/models/base/Newsletter.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * Class Newsletter @@ -35,9 +31,9 @@ use elitedivision\amos\notificationmanager\AmosNotify; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\notificationmanager\models\NewsletterContents[] $newsletterContents + * @property \arter\amos\notificationmanager\models\NewsletterContents[] $newsletterContents * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base */ abstract class Newsletter extends Record { diff --git a/src/models/base/NewsletterContents.php b/src/models/base/NewsletterContents.php index 96ddfe2..12b06e9 100755 --- a/src/models/base/NewsletterContents.php +++ b/src/models/base/NewsletterContents.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * Class NewsletterContents @@ -34,11 +30,11 @@ use elitedivision\amos\notificationmanager\AmosNotify; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\notificationmanager\models\Newsletter $newsletter - * @property \elitedivision\amos\notificationmanager\models\NewsletterContentsConf $newsletterContentsConf - * @property \elitedivision\amos\notificationmanager\models\NewsletterContents[] $newsletterContentWithBrothers + * @property \arter\amos\notificationmanager\models\Newsletter $newsletter + * @property \arter\amos\notificationmanager\models\NewsletterContentsConf $newsletterContentsConf + * @property \arter\amos\notificationmanager\models\NewsletterContents[] $newsletterContentWithBrothers * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base */ abstract class NewsletterContents extends Record { diff --git a/src/models/base/NewsletterContentsConf.php b/src/models/base/NewsletterContentsConf.php index 8c32f9a..37bc0a8 100755 --- a/src/models/base/NewsletterContentsConf.php +++ b/src/models/base/NewsletterContentsConf.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * Class NewsletterContentsConf @@ -34,9 +30,9 @@ use elitedivision\amos\notificationmanager\AmosNotify; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\notificationmanager\models\NewsletterContents[] $newsletterContents + * @property \arter\amos\notificationmanager\models\NewsletterContents[] $newsletterContents * - * @package elitedivision\amos\notificationmanager\models\base + * @package arter\amos\notificationmanager\models\base */ abstract class NewsletterContentsConf extends Record { diff --git a/src/models/base/NotificationConfContent.php b/src/models/base/NotificationConfContent.php index 3b8a7a5..70a5e38 100755 --- a/src/models/base/NotificationConfContent.php +++ b/src/models/base/NotificationConfContent.php @@ -1,9 +1,9 @@ <?php -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\notificationmanager\models\NotificationConf; +use arter\amos\core\models\ModelsClassname; +use arter\amos\notificationmanager\models\NotificationConf; use Yii; /** @@ -23,9 +23,9 @@ use Yii; * @property integer $deleted_by * * @property ModelsClassname $modelsClassname - * @property \elitedivision\amos\notificationmanager\models\Notificationconf $notificationConf + * @property \arter\amos\notificationmanager\models\Notificationconf $notificationConf */ -class NotificationConfContent extends \elitedivision\amos\core\record\Record +class NotificationConfContent extends \arter\amos\core\record\Record { public $isSearch = false; @@ -84,6 +84,6 @@ class NotificationConfContent extends \elitedivision\amos\core\record\Record */ public function getNotificationConf() { - return $this->hasOne(\elitedivision\amos\notificationmanager\models\Notificationconf::className(), ['id' => 'notification_conf_id']); + return $this->hasOne(\arter\amos\notificationmanager\models\Notificationconf::className(), ['id' => 'notification_conf_id']); } } diff --git a/src/models/base/NotificationContentLanguage.php b/src/models/base/NotificationContentLanguage.php index 1771063..d3170ad 100755 --- a/src/models/base/NotificationContentLanguage.php +++ b/src/models/base/NotificationContentLanguage.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; use Yii; @@ -18,9 +18,9 @@ use Yii; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\notify\models\ModelsClassname $modelsClassname + * @property \arter\amos\notify\models\ModelsClassname $modelsClassname */ -class NotificationContentLanguage extends \elitedivision\amos\core\record\Record +class NotificationContentLanguage extends \arter\amos\core\record\Record { @@ -69,6 +69,6 @@ class NotificationContentLanguage extends \elitedivision\amos\core\record\Recor */ public function getModelsClassname() { - return $this->hasOne(\elitedivision\amos\notify\models\ModelsClassname::className(), ['id' => 'models_classname_id']); + return $this->hasOne(\arter\amos\notify\models\ModelsClassname::className(), ['id' => 'models_classname_id']); } } diff --git a/src/models/base/NotificationLanguagePreferences.php b/src/models/base/NotificationLanguagePreferences.php index 4595880..232a5bf 100755 --- a/src/models/base/NotificationLanguagePreferences.php +++ b/src/models/base/NotificationLanguagePreferences.php @@ -1,8 +1,8 @@ <?php -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\user\User; +use arter\amos\core\user\User; use lajax\translatemanager\models\Language; use Yii; @@ -19,9 +19,9 @@ use Yii; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\notificationmanager\models\User $user + * @property \arter\amos\notificationmanager\models\User $user */ -class NotificationLanguagePreferences extends \elitedivision\amos\core\record\Record +class NotificationLanguagePreferences extends \arter\amos\core\record\Record { diff --git a/src/models/base/NotificationSendEmail.php b/src/models/base/NotificationSendEmail.php index 7b85025..e633774 100755 --- a/src/models/base/NotificationSendEmail.php +++ b/src/models/base/NotificationSendEmail.php @@ -1,8 +1,8 @@ <?php -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; -use elitedivision\amos\core\record\Record; +use arter\amos\core\record\Record; use Yii; /** diff --git a/src/models/base/NotificationconfNetwork.php b/src/models/base/NotificationconfNetwork.php index 406ebdb..e5b7d42 100755 --- a/src/models/base/NotificationconfNetwork.php +++ b/src/models/base/NotificationconfNetwork.php @@ -1,6 +1,6 @@ <?php -namespace elitedivision\amos\notificationmanager\models\base; +namespace arter\amos\notificationmanager\models\base; use Yii; @@ -23,10 +23,10 @@ use Yii; * @property integer $updated_by * @property integer $deleted_by * - * @property \elitedivision\amos\core\user\User $user - * @property \elitedivision\amos\core\models\ModelsClassname $modelsClassname + * @property \arter\amos\core\user\User $user + * @property \arter\amos\core\models\ModelsClassname $modelsClassname */ -class NotificationconfNetwork extends \elitedivision\amos\core\record\Record +class NotificationconfNetwork extends \arter\amos\core\record\Record { @@ -47,8 +47,8 @@ class NotificationconfNetwork extends \elitedivision\amos\core\record\Record [['user_id', 'models_classname_id'], 'required'], [['user_id', 'models_classname_id', 'record_id', 'email', 'sms', 'created_by', 'updated_by', 'deleted_by'], 'integer'], [['created_at', 'updated_at', 'deleted_at'], 'safe'], - [['user_id'], 'exist', 'skipOnError' => true, 'targetClass' => \elitedivision\amos\core\user\User::className(), 'targetAttribute' => ['user_id' => 'id']], - [['models_classname_id'], 'exist', 'skipOnError' => true, 'targetClass' => \elitedivision\amos\core\models\ModelsClassname::className(), 'targetAttribute' => ['models_classname_id' => 'id']], + [['user_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\core\user\User::className(), 'targetAttribute' => ['user_id' => 'id']], + [['models_classname_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\core\models\ModelsClassname::className(), 'targetAttribute' => ['models_classname_id' => 'id']], ]; } @@ -78,7 +78,7 @@ class NotificationconfNetwork extends \elitedivision\amos\core\record\Record */ public function getUser() { - return $this->hasOne(\elitedivision\amos\core\user\User::className(), ['id' => 'user_id']); + return $this->hasOne(\arter\amos\core\user\User::className(), ['id' => 'user_id']); } /** @@ -86,7 +86,7 @@ class NotificationconfNetwork extends \elitedivision\amos\core\record\Record */ public function getModelsClassname() { - return $this->hasOne(\elitedivision\amos\core\models\ModelsClassname::className(), ['id' => 'models_classname_id']); + return $this->hasOne(\arter\amos\core\models\ModelsClassname::className(), ['id' => 'models_classname_id']); } diff --git a/src/models/search/NewsletterSearch.php b/src/models/search/NewsletterSearch.php index 13344bc..de5bd4d 100755 --- a/src/models/search/NewsletterSearch.php +++ b/src/models/search/NewsletterSearch.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\models\search + * @package arter\amos\notificationmanager\models\search * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\models\search; +namespace arter\amos\notificationmanager\models\search; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\exceptions\NewsletterException; -use elitedivision\amos\notificationmanager\models\Newsletter; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\exceptions\NewsletterException; +use arter\amos\notificationmanager\models\Newsletter; use yii\base\Model; use yii\data\ActiveDataProvider; use yii\db\ActiveQuery; @@ -27,7 +23,7 @@ use yii\db\ActiveQuery; /** * Class NewsletterSearch * NewsletterSearch represents the model behind the search form about `backend\amos\notify\models\Newsletter`. - * @package elitedivision\amos\notificationmanager\models\search + * @package arter\amos\notificationmanager\models\search */ class NewsletterSearch extends Newsletter { diff --git a/src/record/NotifyAuditRecord.php b/src/record/NotifyAuditRecord.php index ac9aacb..71f0432 100755 --- a/src/record/NotifyAuditRecord.php +++ b/src/record/NotifyAuditRecord.php @@ -1,21 +1,17 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * * @package piattaforma-openinnovation * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\record; +namespace arter\amos\notificationmanager\record; -use \elitedivision\amos\audit\AuditTrailBehavior; +use \arter\amos\audit\AuditTrailBehavior; use \yii\helpers\ArrayHelper; class NotifyAuditRecord extends NotifyRecord implements NotifyRecordInterface diff --git a/src/record/NotifyRecord.php b/src/record/NotifyRecord.php index 20a546d..a776b3a 100755 --- a/src/record/NotifyRecord.php +++ b/src/record/NotifyRecord.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\record + * @package arter\amos\notificationmanager\record * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\record; +namespace arter\amos\notificationmanager\record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\base\NotifyWidget; -use elitedivision\amos\notificationmanager\models\NotificationChannels; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\base\NotifyWidget; +use arter\amos\notificationmanager\models\NotificationChannels; use Yii; use yii\db\ActiveQuery; use yii\db\Expression; @@ -25,9 +21,9 @@ use yii\helpers\ArrayHelper; /** * Class NotifyRecord - * @package elitedivision\amos\notificationmanager\record + * @package arter\amos\notificationmanager\record */ -class NotifyRecord extends \elitedivision\amos\core\record\Record implements NotifyRecordInterface +class NotifyRecord extends \arter\amos\core\record\Record implements NotifyRecordInterface { /** * @var string $isNewsFiledName diff --git a/src/record/NotifyRecordInterface.php b/src/record/NotifyRecordInterface.php index ff6af32..4127ad6 100755 --- a/src/record/NotifyRecordInterface.php +++ b/src/record/NotifyRecordInterface.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\record + * @package arter\amos\notificationmanager\record * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\record; +namespace arter\amos\notificationmanager\record; /** * Interface NotifyRecordInterface - * @package elitedivision\amos\notificationmanager\record + * @package arter\amos\notificationmanager\record */ interface NotifyRecordInterface { diff --git a/src/rules/DeleteOwnNewsletterRule.php b/src/rules/DeleteOwnNewsletterRule.php index 15181ae..10ec127 100755 --- a/src/rules/DeleteOwnNewsletterRule.php +++ b/src/rules/DeleteOwnNewsletterRule.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\rules; +namespace arter\amos\notificationmanager\rules; /** * Class DeleteOwnNewsletterRule - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules */ class DeleteOwnNewsletterRule extends OwnNewsletterRule { diff --git a/src/rules/OwnNewsletterRule.php b/src/rules/OwnNewsletterRule.php index e093bc5..547c9c6 100755 --- a/src/rules/OwnNewsletterRule.php +++ b/src/rules/OwnNewsletterRule.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\rules; +namespace arter\amos\notificationmanager\rules; -use elitedivision\amos\core\rules\BasicContentRule; -use elitedivision\amos\notificationmanager\models\Newsletter; +use arter\amos\core\rules\BasicContentRule; +use arter\amos\notificationmanager\models\Newsletter; use raoul2000\workflow\base\SimpleWorkflowBehavior; /** * Class OwnNewsletterRule - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules */ abstract class OwnNewsletterRule extends BasicContentRule { diff --git a/src/rules/UpdateOwnNewsletterRule.php b/src/rules/UpdateOwnNewsletterRule.php index 7c7cba9..6d0aa5a 100755 --- a/src/rules/UpdateOwnNewsletterRule.php +++ b/src/rules/UpdateOwnNewsletterRule.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\rules; +namespace arter\amos\notificationmanager\rules; /** * Class UpdateOwnNewsletterRule - * @package elitedivision\amos\notificationmanager\rules + * @package arter\amos\notificationmanager\rules */ class UpdateOwnNewsletterRule extends OwnNewsletterRule { diff --git a/src/utility/NewsletterUtility.php b/src/utility/NewsletterUtility.php index e62ab1d..4b58f9c 100755 --- a/src/utility/NewsletterUtility.php +++ b/src/utility/NewsletterUtility.php @@ -1,34 +1,30 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\utility + * @package arter\amos\notificationmanager\utility * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\utility; +namespace arter\amos\notificationmanager\utility; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\exceptions\NewsletterException; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; -use elitedivision\amos\notificationmanager\models\Notification; -use elitedivision\amos\notificationmanager\models\NotificationChannels; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\exceptions\NewsletterException; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\notificationmanager\models\Notification; +use arter\amos\notificationmanager\models\NotificationChannels; use yii\base\BaseObject; use yii\db\ActiveQuery; /** * Class NewsletterUtility - * @package elitedivision\amos\notificationmanager\utility + * @package arter\amos\notificationmanager\utility */ class NewsletterUtility extends BaseObject { diff --git a/src/utility/NotifyUtility.php b/src/utility/NotifyUtility.php index c7ab569..c0d1c60 100755 --- a/src/utility/NotifyUtility.php +++ b/src/utility/NotifyUtility.php @@ -1,41 +1,37 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\utility + * @package arter\amos\notificationmanager\utility * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\utility; - -use elitedivision\amos\admin\models\UserContact; -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\admin\utility\UserProfileUtility; -use elitedivision\amos\comments\models\Comment; -use elitedivision\amos\core\models\base\ContentLikes; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\core\user\User; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\base\BuilderFactory; -use elitedivision\amos\notificationmanager\models\base\NotificationConfContent; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\models\NotificationconfNetwork; -use elitedivision\amos\notificationmanager\models\NotificationLanguagePreferences; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; +namespace arter\amos\notificationmanager\utility; + +use arter\amos\admin\models\UserContact; +use arter\amos\admin\models\UserProfile; +use arter\amos\admin\utility\UserProfileUtility; +use arter\amos\comments\models\Comment; +use arter\amos\core\models\base\ContentLikes; +use arter\amos\core\models\ModelsClassname; +use arter\amos\core\user\User; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\base\BuilderFactory; +use arter\amos\notificationmanager\models\base\NotificationConfContent; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationconfNetwork; +use arter\amos\notificationmanager\models\NotificationLanguagePreferences; +use arter\amos\notificationmanager\models\NotificationsConfOpt; use Yii; use yii\base\BaseObject; use yii\db\ActiveQuery; /** * Class NotifyUtility - * @package elitedivision\amos\notificationmanager\utility + * @package arter\amos\notificationmanager\utility */ class NotifyUtility extends BaseObject { @@ -384,17 +380,17 @@ class NotifyUtility extends BaseObject public static function getIconPlugins($classname, $color) { $iconName = '/img//icon_emails/icon-'; - if ($classname == 'elitedivision\amos\news\models\News') { + if ($classname == 'arter\amos\news\models\News') { $iconName .= 'news'; - } else if ($classname == 'elitedivision\amos\discussioni\models\DiscussioniTopic') { + } else if ($classname == 'arter\amos\discussioni\models\DiscussioniTopic') { $iconName .= 'discussioni'; - } else if ($classname == 'elitedivision\amos\sondaggi\models\Sondaggi') { + } else if ($classname == 'arter\amos\sondaggi\models\Sondaggi') { $iconName .= 'sondaggi'; - } else if ($classname == 'elitedivision\amos\partnershipprofiles\models\PartnershipProfiles') { + } else if ($classname == 'arter\amos\partnershipprofiles\models\PartnershipProfiles') { $iconName .= 'collaborazione'; - } else if ($classname == 'elitedivision\amos\events\models\Event') { + } else if ($classname == 'arter\amos\events\models\Event') { $iconName .= 'eventi'; - } else if ($classname == 'elitedivision\amos\documenti\models\Documenti') { + } else if ($classname == 'arter\amos\documenti\models\Documenti') { $iconName .= 'documenti'; } else { /** @var AmosNotify $notifyModule */ @@ -463,7 +459,7 @@ class NotifyUtility extends BaseObject $idsCountsGlobal = []; $module = AmosNotify::getInstance(); - $modelsEnabled = \elitedivision\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); + $modelsEnabled = \arter\amos\cwh\models\CwhConfigContents::find()->addSelect('classname')->column(); $cwhModule = Yii::$app->getModule('cwh'); if (isset($cwhModule)) { foreach ($modelsEnabled as $classname) { @@ -472,7 +468,7 @@ class NotifyUtility extends BaseObject } // $debugMe // A) contenuti creati da $aboutUser che $toUser può vedere - $cwhActiveQuery = new \elitedivision\amos\cwh\query\CwhActiveQuery($classname, [ + $cwhActiveQuery = new \arter\amos\cwh\query\CwhActiveQuery($classname, [ 'queryBase' => $classname::find(), 'userId' => $toUserId ]); @@ -589,7 +585,7 @@ class NotifyUtility extends BaseObject } // $debugMe if (count($res) > 0) { - $results['connected_to']['elitedivision\amos\admin\models\UserProfile'] = $res; + $results['connected_to']['arter\amos\admin\models\UserProfile'] = $res; } } diff --git a/src/views/default/index.php b/src/views/default/index.php index b50d448..9e1ff85 100755 --- a/src/views/default/index.php +++ b/src/views/default/index.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\admin\views\default + * @package arter\amos\admin\views\default * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -/** @var \elitedivision\amos\dashboard\models\AmosUserDashboards $currentDashboard * */ +/** @var \arter\amos\dashboard\models\AmosUserDashboards $currentDashboard * */ /** @var \yii\web\View $this * */ -use elitedivision\amos\core\icons\AmosIcons; -use elitedivision\amos\layout\assets\BaseAsset; -use elitedivision\amos\dashboard\AmosDashboard; -use elitedivision\amos\dashboard\assets\ModuleDashboardAsset; -use elitedivision\amos\admin\AmosAdmin; +use arter\amos\core\icons\AmosIcons; +use arter\amos\layout\assets\BaseAsset; +use arter\amos\dashboard\AmosDashboard; +use arter\amos\dashboard\assets\ModuleDashboardAsset; +use arter\amos\admin\AmosAdmin; use yii\helpers\Html; use yii\web\JsExpression; diff --git a/src/views/email/content.php b/src/views/email/content.php index 3dec9a0..24d76ca 100755 --- a/src/views/email/content.php +++ b/src/views/email/content.php @@ -1,33 +1,29 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\forms\ItemAndCardHeaderWidget; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ContentModelInterface; -use elitedivision\amos\core\interfaces\ViewModelInterface; -use elitedivision\amos\core\record\Record; +use arter\amos\core\forms\ItemAndCardHeaderWidget; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ContentModelInterface; +use arter\amos\core\interfaces\ViewModelInterface; +use arter\amos\core\record\Record; /** * @var Record|ContentModelInterface|ViewModelInterface $model - * @var \elitedivision\amos\admin\models\UserProfile $profile + * @var \arter\amos\admin\models\UserProfile $profile */ if (!empty($profile)) { $this->params['profile'] = $profile; } -$notifyModule = \elitedivision\amos\notificationmanager\AmosNotify::instance(); +$notifyModule = \arter\amos\notificationmanager\AmosNotify::instance(); ?> <div style="border:1px solid #cccccc;padding:10px;margin-bottom: 10px;background-color: #ffffff;"> diff --git a/src/views/email/content_comment.php b/src/views/email/content_comment.php index f77425e..fa8aee5 100755 --- a/src/views/email/content_comment.php +++ b/src/views/email/content_comment.php @@ -1,5 +1,5 @@ <?php -use elitedivision\amos\admin\widgets\UserCardWidget; +use arter\amos\admin\widgets\UserCardWidget; ?> <div class="media-left"> <?= UserCardWidget::widget(['model' => $comment->createdUserProfile, 'enableLink' => false]) ?> diff --git a/src/views/email/content_footer.php b/src/views/email/content_footer.php index 824a93c..6e78454 100755 --- a/src/views/email/content_footer.php +++ b/src/views/email/content_footer.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\notificationmanager\AmosNotify; /** - * @var \elitedivision\amos\core\user\User $user + * @var \arter\amos\core\user\User $user */ ?> diff --git a/src/views/email/content_header.php b/src/views/email/content_header.php index eaedcad..7c08f1d 100755 --- a/src/views/email/content_header.php +++ b/src/views/email/content_header.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var integer $contents_number diff --git a/src/views/email/content_howmany.php b/src/views/email/content_howmany.php index 2eae59a..e68ff56 100755 --- a/src/views/email/content_howmany.php +++ b/src/views/email/content_howmany.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ /** diff --git a/src/views/email/content_immediate_email_header.php b/src/views/email/content_immediate_email_header.php index 2087b8e..20d4125 100755 --- a/src/views/email/content_immediate_email_header.php +++ b/src/views/email/content_immediate_email_header.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var integer $contents_number diff --git a/src/views/email/content_list.php b/src/views/email/content_list.php index d615ae8..e5645da 100755 --- a/src/views/email/content_list.php +++ b/src/views/email/content_list.php @@ -1,28 +1,24 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ContentModelInterface; -use elitedivision\amos\core\interfaces\ModelImageInterface; -use elitedivision\amos\core\interfaces\ViewModelInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ContentModelInterface; +use arter\amos\core\interfaces\ModelImageInterface; +use arter\amos\core\interfaces\ViewModelInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * @var Record|ContentModelInterface|ViewModelInterface $model - * @var \elitedivision\amos\admin\models\UserProfile $profile + * @var \arter\amos\admin\models\UserProfile $profile * @var Record[] $arrayModels */ if (!empty($profile)) { @@ -78,7 +74,7 @@ $notifyModule = AmosNotify::instance(); <td width="400"> <table width="100%"> <tr> - <?= \elitedivision\amos\notificationmanager\widgets\ItemAndCardWidgetEmailSummaryWidget::widget([ + <?= \arter\amos\notificationmanager\widgets\ItemAndCardWidgetEmailSummaryWidget::widget([ 'model' => $model, ]); ?> </tr> diff --git a/src/views/email/content_list_network.php b/src/views/email/content_list_network.php index c4dec93..be43d3a 100755 --- a/src/views/email/content_list_network.php +++ b/src/views/email/content_list_network.php @@ -1,34 +1,30 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ContentModelInterface; -use elitedivision\amos\core\interfaces\ViewModelInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ContentModelInterface; +use arter\amos\core\interfaces\ViewModelInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * @var Record|ContentModelInterface|ViewModelInterface $model - * @var \elitedivision\amos\admin\models\UserProfile $profile + * @var \arter\amos\admin\models\UserProfile $profile * @var Record[] $arrayModels */ if (!empty($profile)) { $this->params['profile'] = $profile; } -$colors = \elitedivision\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); +$colors = \arter\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); $notifyModule = AmosNotify::instance(); ?> @@ -87,7 +83,7 @@ foreach ($arrayModels as $model) { <table width="100%"> <tr> <?= - \elitedivision\amos\notificationmanager\widgets\ItemAndCardWidgetEmailSummaryWidget::widget([ + \arter\amos\notificationmanager\widgets\ItemAndCardWidgetEmailSummaryWidget::widget([ 'model' => $model, ]); ?> diff --git a/src/views/email/content_section_title.php b/src/views/email/content_section_title.php index 232344e..6ade0f6 100755 --- a/src/views/email/content_section_title.php +++ b/src/views/email/content_section_title.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var string $title diff --git a/src/views/email/content_title.php b/src/views/email/content_title.php index e241115..059d4e1 100755 --- a/src/views/email/content_title.php +++ b/src/views/email/content_title.php @@ -1,18 +1,14 @@ <?php -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ /** diff --git a/src/views/email/content_title_network.php b/src/views/email/content_title_network.php index 1ae9b1e..3d8c89f 100755 --- a/src/views/email/content_title_network.php +++ b/src/views/email/content_title_network.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var integer $contents_number */ $urlIcon = \Yii::$app->params['platform']['frontendUrl']. $icon; -$colors = \elitedivision\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); +$colors = \arter\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); ?> <tr> diff --git a/src/views/email/item_and_card_header_widget_mail.php b/src/views/email/item_and_card_header_widget_mail.php index 8bff36f..d069acb 100755 --- a/src/views/email/item_and_card_header_widget_mail.php +++ b/src/views/email/item_and_card_header_widget_mail.php @@ -1,20 +1,16 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets\views\widgets + * @package arter\amos\notificationmanager\widgets\views\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\core\module\BaseAmosModule; +use arter\amos\admin\models\UserProfile; +use arter\amos\core\module\BaseAmosModule; /** * @var string $contentCreatorAvatar Avatar of the content creator. @@ -25,7 +21,7 @@ use elitedivision\amos\core\module\BaseAmosModule; * @var string $publicatonDate Publication date of the content. * @var string $customContent Custom content. * @var UserProfile $contentCreator Content creator. - * @var \elitedivision\amos\core\forms\ItemAndCardHeaderWidget $widget + * @var \arter\amos\core\forms\ItemAndCardHeaderWidget $widget */ if (isset(\Yii::$app->params['customContentCreatorAvatarUrl']) && \Yii::$app->params['customContentCreatorAvatarUrl']) { diff --git a/src/views/email/legacy_content.php b/src/views/email/legacy_content.php index c7abc74..9136d21 100755 --- a/src/views/email/legacy_content.php +++ b/src/views/email/legacy_content.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ContentModelInterface; -use elitedivision\amos\core\interfaces\ViewModelInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ContentModelInterface; +use arter\amos\core\interfaces\ViewModelInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; /** * @var Record|ContentModelInterface|ViewModelInterface $model - * @var \elitedivision\amos\admin\models\UserProfile $profile + * @var \arter\amos\admin\models\UserProfile $profile */ if (!empty($profile)) { @@ -51,7 +47,7 @@ $notifyModule = AmosNotify::instance(); <?php if (!is_null($user)): ?> <?= - \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $user, 'onlyAvatar' => true, 'absoluteUrl' => true @@ -62,7 +58,7 @@ $notifyModule = AmosNotify::instance(); <div style="margin-left: 20px; max-width: 430px;"> <?= - \elitedivision\amos\core\forms\PublishedByWidget::widget([ + \arter\amos\core\forms\PublishedByWidget::widget([ 'model' => $model, 'layout' => $layout, ]) diff --git a/src/views/email/legacy_content_title.php b/src/views/email/legacy_content_title.php index a2421f5..27e2bc0 100755 --- a/src/views/email/legacy_content_title.php +++ b/src/views/email/legacy_content_title.php @@ -1,16 +1,12 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ /** diff --git a/src/views/email/network_title.php b/src/views/email/network_title.php index 012253b..ac07b12 100755 --- a/src/views/email/network_title.php +++ b/src/views/email/network_title.php @@ -1,26 +1,22 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var integer $contents_number */ -$colors = \elitedivision\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); -$urlIcon = \Yii::$app->params['platform']['frontendUrl'].\elitedivision\amos\notificationmanager\utility\NotifyUtility::getIconNetwork($color); +$colors = \arter\amos\notificationmanager\utility\NotifyUtility::getColorNetwork($color); +$urlIcon = \Yii::$app->params['platform']['frontendUrl'].\arter\amos\notificationmanager\utility\NotifyUtility::getIconNetwork($color); ?> diff --git a/src/views/email/userprofile_list.php b/src/views/email/userprofile_list.php index 79428cd..2711769 100755 --- a/src/views/email/userprofile_list.php +++ b/src/views/email/userprofile_list.php @@ -1,28 +1,24 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ContentModelInterface; -use elitedivision\amos\core\interfaces\ViewModelInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\cwh\base\ModelContentInterface; -use elitedivision\amos\core\forms\ItemAndCardHeaderWidget; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ContentModelInterface; +use arter\amos\core\interfaces\ViewModelInterface; +use arter\amos\core\record\Record; +use arter\amos\cwh\base\ModelContentInterface; +use arter\amos\core\forms\ItemAndCardHeaderWidget; /** * @var Record|ContentModelInterface|ViewModelInterface $model - * @var \elitedivision\amos\admin\models\UserProfile $profile + * @var \arter\amos\admin\models\UserProfile $profile * @var Record[] $arrayModels */ if (!empty($profile)) { diff --git a/src/views/email/validated.php b/src/views/email/validated.php index a5b3580..4d0291c 100755 --- a/src/views/email/validated.php +++ b/src/views/email/validated.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\cwh\base\ModelContentInterface; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\cwh\base\ModelContentInterface; +use arter\amos\notificationmanager\AmosNotify; if (!empty($profile)) { @@ -45,7 +41,7 @@ $notifyModule = AmosNotify::instance(); <div style="box-sizing:border-box;"> <div style="box-sizing:border-box;padding:0;font-weight:bold;color:#000000;font-weight: normal;"> <?php - if (!$model instanceof \elitedivision\amos\admin\models\UserProfile) { + if (!$model instanceof \arter\amos\admin\models\UserProfile) { echo $model->getDescription(false); } ?> @@ -65,7 +61,7 @@ $notifyModule = AmosNotify::instance(); <?php $user = $model->getCreatedUserProfile()->one(); if(!is_null($user)) { - echo \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + echo \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $user, 'onlyAvatar' => true, 'absoluteUrl' => true @@ -75,7 +71,7 @@ $notifyModule = AmosNotify::instance(); </div> <div style="margin-left: 20px;"> - <?= \elitedivision\amos\core\forms\PublishedByWidget::widget([ + <?= \arter\amos\core\forms\PublishedByWidget::widget([ 'model' => $model, 'layout' => $layout, ]) ?> @@ -83,7 +79,7 @@ $notifyModule = AmosNotify::instance(); <div style="margin-top:20px; display: flex; padding: 10px;"> <div style="width: 50px; height: 50px; overflow: hidden;-webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;float: left;"> - <?= \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + <?= \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $validator, 'onlyAvatar' => true, 'absoluteUrl' => true diff --git a/src/views/email/validator.php b/src/views/email/validator.php index 12bc762..a9a4ed6 100755 --- a/src/views/email/validator.php +++ b/src/views/email/validator.php @@ -1,22 +1,18 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\email + * @package arter\amos\notificationmanager\views\email * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\cwh\base\ModelContentInterface; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\cwh\base\ModelContentInterface; if(!empty($profile)) { $this->params['profile'] = $profile; @@ -61,12 +57,12 @@ $notifyModule = AmosNotify::instance(); ?> <?php $user = $model->getCreatedUserProfile()->one(); - if(get_class($model) == "elitedivision\amos\admin\models\UserProfile"){ + if(get_class($model) == "arter\amos\admin\models\UserProfile"){ $user = $model; } if(!is_null($user)){ - echo \elitedivision\amos\admin\widgets\UserCardWidget::widget([ + echo \arter\amos\admin\widgets\UserCardWidget::widget([ 'model' => $user, 'onlyAvatar' => true, 'absoluteUrl' => true @@ -76,7 +72,7 @@ $notifyModule = AmosNotify::instance(); </div> <div style="margin-left: 20px;"> - <?= \elitedivision\amos\core\forms\PublishedByWidget::widget([ + <?= \arter\amos\core\forms\PublishedByWidget::widget([ 'model' => $model, 'layout' => $layout, ]) ?> diff --git a/src/views/newsletter/_form.php b/src/views/newsletter/_form.php index 619d05e..56c4351 100755 --- a/src/views/newsletter/_form.php +++ b/src/views/newsletter/_form.php @@ -1,38 +1,34 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\forms\ActiveForm; -use elitedivision\amos\core\forms\CloseSaveButtonWidget; -use elitedivision\amos\core\forms\CreatedUpdatedWidget; -use elitedivision\amos\core\forms\editors\m2mWidget\M2MWidget; -use elitedivision\amos\core\forms\RequiredFieldsTipWidget; -use elitedivision\amos\core\forms\SortModelsWidget; -use elitedivision\amos\core\forms\Tabs; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\controllers\NewsletterController; -use elitedivision\amos\notificationmanager\models\NewsletterContents; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\core\forms\ActiveForm; +use arter\amos\core\forms\CloseSaveButtonWidget; +use arter\amos\core\forms\CreatedUpdatedWidget; +use arter\amos\core\forms\editors\m2mWidget\M2MWidget; +use arter\amos\core\forms\RequiredFieldsTipWidget; +use arter\amos\core\forms\SortModelsWidget; +use arter\amos\core\forms\Tabs; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\controllers\NewsletterController; +use arter\amos\notificationmanager\models\NewsletterContents; +use arter\amos\notificationmanager\models\NewsletterContentsConf; use kartik\alert\Alert; use yii\base\NotSupportedException; use yii\db\ActiveQuery; /** * @var yii\web\View $this - * @var elitedivision\amos\notificationmanager\models\Newsletter $model + * @var arter\amos\notificationmanager\models\Newsletter $model * @var yii\widgets\ActiveForm $form */ diff --git a/src/views/newsletter/_search.php b/src/views/newsletter/_search.php index f544e70..57f2d87 100755 --- a/src/views/newsletter/_search.php +++ b/src/views/newsletter/_search.php @@ -1,25 +1,21 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\helpers\Html; +use arter\amos\notificationmanager\AmosNotify; use yii\widgets\ActiveForm; /** * @var yii\web\View $this - * @var elitedivision\amos\notificationmanager\models\search\NewsletterSearch $model + * @var arter\amos\notificationmanager\models\search\NewsletterSearch $model * @var yii\widgets\ActiveForm $form */ diff --git a/src/views/newsletter/associa-m2m.php b/src/views/newsletter/associa-m2m.php index a7b107a..f485170 100755 --- a/src/views/newsletter/associa-m2m.php +++ b/src/views/newsletter/associa-m2m.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\organizzazioni\views\profilo + * @package arter\amos\organizzazioni\views\profilo * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\forms\editors\m2mWidget\M2MWidget; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\controllers\NewsletterController; +use arter\amos\core\forms\editors\m2mWidget\M2MWidget; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\controllers\NewsletterController; /** * @var yii\web\View $this - * @var \elitedivision\amos\notificationmanager\models\Newsletter $model + * @var \arter\amos\notificationmanager\models\Newsletter $model */ /** @var NewsletterController $appController */ diff --git a/src/views/newsletter/create.php b/src/views/newsletter/create.php index 65e163a..e442be0 100755 --- a/src/views/newsletter/create.php +++ b/src/views/newsletter/create.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var yii\web\View $this - * @var elitedivision\amos\notificationmanager\models\Newsletter $model + * @var arter\amos\notificationmanager\models\Newsletter $model */ $this->title = AmosNotify::t('amosnotify', 'Create newsletter'); diff --git a/src/views/newsletter/index.php b/src/views/newsletter/index.php index 50288ed..4780900 100755 --- a/src/views/newsletter/index.php +++ b/src/views/newsletter/index.php @@ -1,30 +1,26 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\module\BaseAmosModule; -use elitedivision\amos\core\views\DataProviderView; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\assets\NotifyAsset; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\widgets\SendNewsletterWidget; +use arter\amos\core\helpers\Html; +use arter\amos\core\module\BaseAmosModule; +use arter\amos\core\views\DataProviderView; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\assets\NotifyAsset; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\widgets\SendNewsletterWidget; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider - * @var elitedivision\amos\notificationmanager\models\search\NewsletterSearch $model + * @var arter\amos\notificationmanager\models\search\NewsletterSearch $model * @var string $currentView */ @@ -75,7 +71,7 @@ $loggedUserIsNewsletterAdminstrator = \Yii::$app->user->can('NEWSLETTER_ADMINIST } ], [ - 'class' => 'elitedivision\amos\core\views\grid\ActionColumn', + 'class' => 'arter\amos\core\views\grid\ActionColumn', 'template' => '{reSendNewsletter}{sendNewsletter}{sendTestNewsletter}{stopSendNewsletter}{view}{update}{delete}', 'beforeRenderParent' => function ($model, $key, $index, $caller) { return [ @@ -85,7 +81,7 @@ $loggedUserIsNewsletterAdminstrator = \Yii::$app->user->can('NEWSLETTER_ADMINIST }, 'buttons' => [ 'sendTestNewsletter' => function ($url, $model, $key) { - /** @var \elitedivision\amos\notificationmanager\models\Newsletter $model */ + /** @var \arter\amos\notificationmanager\models\Newsletter $model */ $btn = ''; $beforeRenderParentRes = ($key['beforeRenderParentRes']['allContentsPublished'] && $key['beforeRenderParentRes']['userCanUpdateThisNewsletter']); @@ -98,7 +94,7 @@ $loggedUserIsNewsletterAdminstrator = \Yii::$app->user->can('NEWSLETTER_ADMINIST return $btn; }, 'sendNewsletter' => function ($url, $model, $key) { - /** @var \elitedivision\amos\notificationmanager\models\Newsletter $model */ + /** @var \arter\amos\notificationmanager\models\Newsletter $model */ $btn = ''; $beforeRenderParentRes = ($key['beforeRenderParentRes']['allContentsPublished'] && $key['beforeRenderParentRes']['userCanUpdateThisNewsletter']); @@ -111,7 +107,7 @@ $loggedUserIsNewsletterAdminstrator = \Yii::$app->user->can('NEWSLETTER_ADMINIST return $btn; }, 'reSendNewsletter' => function ($url, $model, $key) { - /** @var \elitedivision\amos\notificationmanager\models\Newsletter $model */ + /** @var \arter\amos\notificationmanager\models\Newsletter $model */ $btn = ''; $beforeRenderParentRes = ($key['beforeRenderParentRes']['allContentsPublished'] && $key['beforeRenderParentRes']['userCanUpdateThisNewsletter']); @@ -124,7 +120,7 @@ $loggedUserIsNewsletterAdminstrator = \Yii::$app->user->can('NEWSLETTER_ADMINIST return $btn; }, 'stopSendNewsletter' => function ($url, $model, $key) use ($loggedUserIsNewsletterAdminstrator) { - /** @var \elitedivision\amos\notificationmanager\models\Newsletter $model */ + /** @var \arter\amos\notificationmanager\models\Newsletter $model */ $btn = ''; if (($model->isWaitSendNewsletter() || $model->isWaitReSendNewsletter()) && $loggedUserIsNewsletterAdminstrator && $key['beforeRenderParentRes']['allContentsPublished'] diff --git a/src/views/newsletter/update.php b/src/views/newsletter/update.php index 2894658..7cc5b1a 100755 --- a/src/views/newsletter/update.php +++ b/src/views/newsletter/update.php @@ -1,23 +1,19 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\AmosNotify; /** * @var yii\web\View $this - * @var elitedivision\amos\notificationmanager\models\Newsletter $model + * @var arter\amos\notificationmanager\models\Newsletter $model */ $this->title = AmosNotify::t('amosnotify', 'Update newsletter'); diff --git a/src/views/newsletter/view.php b/src/views/newsletter/view.php index 7d67539..9c28356 100755 --- a/src/views/newsletter/view.php +++ b/src/views/newsletter/view.php @@ -1,36 +1,32 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\views\newsletter + * @package arter\amos\notificationmanager\views\newsletter * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\core\forms\CloseButtonWidget; -use elitedivision\amos\core\forms\ContextMenuWidget; -use elitedivision\amos\core\interfaces\ModelGrammarInterface; -use elitedivision\amos\core\interfaces\ModelLabelsInterface; -use elitedivision\amos\core\interfaces\NewsletterInterface; -use elitedivision\amos\core\record\Record; -use elitedivision\amos\core\views\AmosGridView; -use elitedivision\amos\notificationmanager\controllers\NewsletterController; -use elitedivision\amos\notificationmanager\models\Newsletter; -use elitedivision\amos\notificationmanager\models\NewsletterContents; -use elitedivision\amos\notificationmanager\models\NewsletterContentsConf; +use arter\amos\core\forms\CloseButtonWidget; +use arter\amos\core\forms\ContextMenuWidget; +use arter\amos\core\interfaces\ModelGrammarInterface; +use arter\amos\core\interfaces\ModelLabelsInterface; +use arter\amos\core\interfaces\NewsletterInterface; +use arter\amos\core\record\Record; +use arter\amos\core\views\AmosGridView; +use arter\amos\notificationmanager\controllers\NewsletterController; +use arter\amos\notificationmanager\models\Newsletter; +use arter\amos\notificationmanager\models\NewsletterContents; +use arter\amos\notificationmanager\models\NewsletterContentsConf; use yii\base\NotSupportedException; use yii\data\ActiveDataProvider; use yii\db\ActiveQuery; /** * @var yii\web\View $this - * @var \elitedivision\amos\notificationmanager\models\Newsletter $model + * @var \arter\amos\notificationmanager\models\Newsletter $model */ $this->title = $model->subject; diff --git a/src/views/widgets/NotificationNavDecorator.php b/src/views/widgets/NotificationNavDecorator.php index e39869b..40430ab 100755 --- a/src/views/widgets/NotificationNavDecorator.php +++ b/src/views/widgets/NotificationNavDecorator.php @@ -1,19 +1,15 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notify + * @package arter\amos\notify * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\views\widgets; +namespace arter\amos\notificationmanager\views\widgets; use yii\bootstrap\Widget; use yii\bootstrap\Nav; diff --git a/src/widgets/ItemAndCardWidgetEmailSummaryWidget.php b/src/widgets/ItemAndCardWidgetEmailSummaryWidget.php index 9fb6269..a6fe8e7 100755 --- a/src/widgets/ItemAndCardWidgetEmailSummaryWidget.php +++ b/src/widgets/ItemAndCardWidgetEmailSummaryWidget.php @@ -1,32 +1,28 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets; +namespace arter\amos\notificationmanager\widgets; -use elitedivision\amos\core\forms\ItemAndCardHeaderWidget; +use arter\amos\core\forms\ItemAndCardHeaderWidget; /** * Class ItemAndCardWidgetEmailSummaryWidget - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets */ class ItemAndCardWidgetEmailSummaryWidget extends ItemAndCardHeaderWidget { /** * @var string $layout Widget view */ - public $layout = "@vendor/elitedivision/amos-notify/src/views/email/item_and_card_header_widget_mail.php"; + public $layout = "@vendor/arter/amos-notify/src/views/email/item_and_card_header_widget_mail.php"; /** * @var bool $showPrevalentPartnershipAndTargets diff --git a/src/widgets/NotifyContentLanguageWidget.php b/src/widgets/NotifyContentLanguageWidget.php index 1ec0e8d..d392c2b 100755 --- a/src/widgets/NotifyContentLanguageWidget.php +++ b/src/widgets/NotifyContentLanguageWidget.php @@ -1,28 +1,24 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets; +namespace arter\amos\notificationmanager\widgets; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\notificationmanager\models\NotificationContentLanguage; +use arter\amos\core\models\ModelsClassname; +use arter\amos\notificationmanager\models\NotificationContentLanguage; use yii\base\InvalidConfigException; use yii\base\Widget; /** * Class NotifyContentLanguageWidget - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets */ class NotifyContentLanguageWidget extends Widget { diff --git a/src/widgets/NotifyFrequencyAdvancedWidget.php b/src/widgets/NotifyFrequencyAdvancedWidget.php index 58b4f55..e75a005 100755 --- a/src/widgets/NotifyFrequencyAdvancedWidget.php +++ b/src/widgets/NotifyFrequencyAdvancedWidget.php @@ -1,34 +1,30 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets; +namespace arter\amos\notificationmanager\widgets; -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\models\ModelsClassname; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\models\NotificationconfNetwork; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\admin\models\UserProfile; +use arter\amos\core\helpers\Html; +use arter\amos\core\models\ModelsClassname; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationconfNetwork; +use arter\amos\notificationmanager\models\NotificationsConfOpt; use kartik\select2\Select2; use yii\base\Widget; use yii\data\ActiveDataProvider; /** * Class NotifyFrequencyWidget - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets */ class NotifyFrequencyAdvancedWidget extends Widget { @@ -493,7 +489,7 @@ class NotifyFrequencyAdvancedWidget extends Widget $moduleCommunity = \Yii::$app->getModule('community'); if($moduleCommunity){ - $model = new \elitedivision\amos\community\models\Community(); + $model = new \arter\amos\community\models\Community(); $query = $model->getUserNetworkQuery($this->model->user_id); $dataProviderNetwork = new ActiveDataProvider([ 'query' => $query, diff --git a/src/widgets/NotifyFrequencyWidget.php b/src/widgets/NotifyFrequencyWidget.php index 19bcbba..9d9dcf6 100755 --- a/src/widgets/NotifyFrequencyWidget.php +++ b/src/widgets/NotifyFrequencyWidget.php @@ -1,31 +1,27 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets; +namespace arter\amos\notificationmanager\widgets; -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\models\NotificationConf; -use elitedivision\amos\notificationmanager\models\NotificationsConfOpt; +use arter\amos\admin\models\UserProfile; +use arter\amos\core\helpers\Html; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\models\NotificationConf; +use arter\amos\notificationmanager\models\NotificationsConfOpt; use kartik\select2\Select2; use yii\base\Widget; /** * Class NotifyFrequencyWidget - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets */ class NotifyFrequencyWidget extends Widget { diff --git a/src/widgets/SendNewsletterWidget.php b/src/widgets/SendNewsletterWidget.php index 226285a..544d249 100755 --- a/src/widgets/SendNewsletterWidget.php +++ b/src/widgets/SendNewsletterWidget.php @@ -1,31 +1,27 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets; +namespace arter\amos\notificationmanager\widgets; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\core\utilities\ModalUtility; -use elitedivision\amos\notificationmanager\AmosNotify; -use elitedivision\amos\notificationmanager\exceptions\NewsletterException; -use elitedivision\amos\notificationmanager\models\Newsletter; +use arter\amos\core\helpers\Html; +use arter\amos\core\utilities\ModalUtility; +use arter\amos\notificationmanager\AmosNotify; +use arter\amos\notificationmanager\exceptions\NewsletterException; +use arter\amos\notificationmanager\models\Newsletter; use yii\base\Widget; use yii\web\View; /** * Class SendNewsletterWidget - * @package elitedivision\amos\notificationmanager\widgets + * @package arter\amos\notificationmanager\widgets */ class SendNewsletterWidget extends Widget { @@ -387,10 +383,10 @@ JS; $moduleL = \Yii::$app->getModule('layout'); if (!is_null($moduleL)) { // Layout - \elitedivision\amos\layout\assets\SpinnerWaitAsset::register(\Yii::$app->view); + \arter\amos\layout\assets\SpinnerWaitAsset::register(\Yii::$app->view); } else { // Core - \elitedivision\amos\core\views\assets\SpinnerWaitAsset::register(\Yii::$app->view); + \arter\amos\core\views\assets\SpinnerWaitAsset::register(\Yii::$app->view); } } } diff --git a/src/widgets/icons/WidgetIconNewsletterAll.php b/src/widgets/icons/WidgetIconNewsletterAll.php index f290340..15b69e2 100755 --- a/src/widgets/icons/WidgetIconNewsletterAll.php +++ b/src/widgets/icons/WidgetIconNewsletterAll.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets\icons; +namespace arter\amos\notificationmanager\widgets\icons; -use elitedivision\amos\core\widget\WidgetIcon; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\widget\WidgetIcon; +use arter\amos\notificationmanager\AmosNotify; use yii\helpers\ArrayHelper; /** * Class WidgetIconNewsletterAll - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons */ class WidgetIconNewsletterAll extends WidgetIcon { diff --git a/src/widgets/icons/WidgetIconNewsletterCreatedBy.php b/src/widgets/icons/WidgetIconNewsletterCreatedBy.php index 4c3ba9e..9d7847f 100755 --- a/src/widgets/icons/WidgetIconNewsletterCreatedBy.php +++ b/src/widgets/icons/WidgetIconNewsletterCreatedBy.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets\icons; +namespace arter\amos\notificationmanager\widgets\icons; -use elitedivision\amos\core\widget\WidgetIcon; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\widget\WidgetIcon; +use arter\amos\notificationmanager\AmosNotify; use yii\helpers\ArrayHelper; /** * Class WidgetIconNewsletterCreatedBy - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons */ class WidgetIconNewsletterCreatedBy extends WidgetIcon { diff --git a/src/widgets/icons/WidgetIconNewsletterDashboard.php b/src/widgets/icons/WidgetIconNewsletterDashboard.php index c2194e0..3398ac6 100755 --- a/src/widgets/icons/WidgetIconNewsletterDashboard.php +++ b/src/widgets/icons/WidgetIconNewsletterDashboard.php @@ -1,27 +1,23 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -namespace elitedivision\amos\notificationmanager\widgets\icons; +namespace arter\amos\notificationmanager\widgets\icons; -use elitedivision\amos\core\widget\WidgetIcon; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\core\widget\WidgetIcon; +use arter\amos\notificationmanager\AmosNotify; use yii\helpers\ArrayHelper; /** * Class WidgetIconNewsletterDashboard - * @package elitedivision\amos\notificationmanager\widgets\icons + * @package arter\amos\notificationmanager\widgets\icons */ class WidgetIconNewsletterDashboard extends WidgetIcon { diff --git a/src/widgets/views/general_notify.php b/src/widgets/views/general_notify.php index bf50944..c686070 100755 --- a/src/widgets/views/general_notify.php +++ b/src/widgets/views/general_notify.php @@ -1,34 +1,30 @@ <?php /** - * Lombardia Informatica S.p.A. - * OPEN 2.0 + * Emilia Romagna Open Innovation + * Arter * - * @see http://example.com Developers'community - * @license GPLv3 - * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 * - * @package elitedivision\amos\notificationmanager\widgets\views + * @package arter\amos\notificationmanager\widgets\views * @category CategoryName - * @author Lombardia Informatica S.p.A. */ -use elitedivision\amos\admin\models\UserProfile; -use elitedivision\amos\core\helpers\Html; -use elitedivision\amos\notificationmanager\AmosNotify; +use arter\amos\admin\models\UserProfile; +use arter\amos\core\helpers\Html; +use arter\amos\notificationmanager\AmosNotify; /** - * @var \elitedivision\amos\notificationmanager\widgets\NotifyFrequencyAdvancedWidget $widget + * @var \arter\amos\notificationmanager\widgets\NotifyFrequencyAdvancedWidget $widget * @var string $htmlFrequencySelector * @var string $htmlContattiSuggeritiEmailFrequencySelector * @var string $htmlContenutiSuccessoEmailFrequencySelector * @var string $htmlProfiloSuccessoEmailFrequencySelector - * @var \elitedivision\amos\notificationmanager\models\NotificationConf $notificationConf + * @var \arter\amos\notificationmanager\models\NotificationConf $notificationConf * @var array $notificationNetworkValues * @var \yii\data\ActiveDataProvider $dataProviderNetwork * @var array $widgetConfData * @var array $notificationLanguagePreferences - * @var \elitedivision\amos\notificationmanager\AmosNotify $module + * @var \arter\amos\notificationmanager\AmosNotify $module */ /** @var UserProfile $widgetModel */ @@ -91,7 +87,7 @@ $this->registerJs($js); <?php } ?> <div class="form-group col-xs-12"> <div class="checkbox"> - <?php echo \elitedivision\amos\core\helpers\Html::activeCheckbox($widgetModel, 'notify_from_editorial_staff', [ + <?php echo \arter\amos\core\helpers\Html::activeCheckbox($widgetModel, 'notify_from_editorial_staff', [ 'name' => 'notify_from_editorial_staff', 'id' => 'notify_from_editorial_staff-1', 'onchange' => "if(!$(this).is(':checked')){ $('#notify-uncheck').modal('show'); }" @@ -197,29 +193,29 @@ $this->registerJs($js); if (!empty($dataProviderNetwork)) { echo "<p>" . AmosNotify::t('amosnotify', 'Con quale frequenza desideri ricevere aggiornamenti dalla piattaforma per la pubblicazione di un nuovo contenuto di tuo interesse all’interno delle community?') . "</p>"; - echo \elitedivision\amos\core\views\AmosGridView::widget([ + echo \arter\amos\core\views\AmosGridView::widget([ 'dataProvider' => $dataProviderNetwork, 'columns' => [ 'logo_id' => [ 'headerOptions' => [ - 'id' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), + 'id' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), ], 'contentOptions' => [ - 'headers' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), + 'headers' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), ], - 'label' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), + 'label' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Logo'), 'format' => 'raw', 'value' => function ($model) { - return \elitedivision\amos\community\widgets\CommunityCardWidget::widget(['model' => $model]); + return \arter\amos\community\widgets\CommunityCardWidget::widget(['model' => $model]); } ], [ 'attribute' => 'name', 'format' => 'html', 'value' => function ($model) { - /** @var \elitedivision\amos\community\models\Community $model */ + /** @var \arter\amos\community\models\Community $model */ return Html::a($model->name, ['/community/community/view', 'id' => $model->id], [ - 'title' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Apri il profilo della community {community_name}', ['community_name' => $model->name]) + 'title' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Apri il profilo della community {community_name}', ['community_name' => $model->name]) ]); } ], @@ -227,9 +223,9 @@ $this->registerJs($js); 'attribute' => 'communityType', 'format' => 'html', 'value' => function ($model) { - /** @var \elitedivision\amos\community\models\Community $model */ + /** @var \arter\amos\community\models\Community $model */ if (!is_null($model->community_type_id)) { - return \elitedivision\amos\community\AmosCommunity::t('amoscommunity', $model->communityType->name); + return \arter\amos\community\AmosCommunity::t('amoscommunity', $model->communityType->name); } else { return '-'; } @@ -255,10 +251,10 @@ $this->registerJs($js); // 'attribute' => 'created_by', // 'format' => 'html', // 'value' => function($model){ -// /** @var \elitedivision\amos\community\models\Community $model */ +// /** @var \arter\amos\community\models\Community $model */ // $name = '-'; // if(!is_null($model->created_by)) { -// $creator = \elitedivision\amos\core\user\User::findOne($model->created_by); +// $creator = \arter\amos\core\user\User::findOne($model->created_by); // if(!empty($creator)) { // return $creator->getProfile()->getNomeCognome(); // } @@ -268,31 +264,31 @@ $this->registerJs($js); // ], // 'status' => [ // 'attribute' => 'status', -// 'label' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Status'), +// 'label' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Status'), // 'headerOptions' => [ -// 'id' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Status'), +// 'id' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Status'), // ], // 'contentOptions' => [ -// 'headers' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Status'), +// 'headers' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Status'), // ], // 'value' => function($model)use ($widget){ -// /** @var \elitedivision\amos\community\models\Community $model */ -// $mmrow = \elitedivision\amos\community\models\CommunityUserMm::findOne(['user_id' => $widgetModel->user_id, 'community_id' => $model->id]); +// /** @var \arter\amos\community\models\Community $model */ +// $mmrow = \arter\amos\community\models\CommunityUserMm::findOne(['user_id' => $widgetModel->user_id, 'community_id' => $model->id]); // return $mmrow->status; // } // ], // 'role' => [ // 'attribute' => 'role', -// 'label' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Role'), +// 'label' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Role'), // 'headerOptions' => [ -// 'id' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Role'), +// 'id' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Role'), // ], // 'contentOptions' => [ -// 'headers' => \elitedivision\amos\community\AmosCommunity::t('amoscommunity', 'Role'), +// 'headers' => \arter\amos\community\AmosCommunity::t('amoscommunity', 'Role'), // ], // 'value' => function($model) use ($widget){ -// /** @var \elitedivision\amos\community\models\Community $model */ -// $mmrow = \elitedivision\amos\community\models\CommunityUserMm::findOne(['user_id' => $widgetModel->user_id, 'community_id' => $model->id]); +// /** @var \arter\amos\community\models\Community $model */ +// $mmrow = \arter\amos\community\models\CommunityUserMm::findOne(['user_id' => $widgetModel->user_id, 'community_id' => $model->id]); // return $mmrow->role; // } // ], diff --git a/src/widgets/views/notify_content_language.php b/src/widgets/views/notify_content_language.php index c245bfa..ea266c9 100755 --- a/src/widgets/views/notify_content_language.php +++ b/src/widgets/views/notify_content_language.php @@ -1,12 +1,12 @@ <?php /** * @var $defaultLanguage string - * @var $widget \elitedivision\amos\notificationmanager\widgets\NotifyContentLanguageWidget + * @var $widget \arter\amos\notificationmanager\widgets\NotifyContentLanguageWidget */ ?> <div id="<?= $widget->id ?>" class="<?= $widget->class ?>"> <div class="row"> - <label class="control-label"><?= \elitedivision\amos\notificationmanager\AmosNotify::tHtml('amosnotify', 'Lingua del contenuto') ?></label> + <label class="control-label"><?= \arter\amos\notificationmanager\AmosNotify::tHtml('amosnotify', 'Lingua del contenuto') ?></label> <?php echo \kartik\select2\Select2::widget([ 'id' => 'notify_content_language-id', -- GitLab