Commit 67da48e4 authored by waltermazza's avatar waltermazza
Browse files

Arter namespace

parent a5a9c914
......@@ -9,13 +9,13 @@ Plugin for E015 common modules.
Either run
```bash
composer require elitedivision/amos-videoconference
composer require arter/amos-videoconference
```
or add this row
```
"elitedivision/amos-videoconference": "dev-master"
"arter/amos-videoconference": "dev-master"
```
to the require section of your `composer.json` file.
......@@ -27,7 +27,7 @@ to the require section of your `composer.json` file.
<?php
'modules' => [
'videoconference' => [
'class' => 'elitedivision\amos\videoconference\AmosVideoconference',
'class' => 'arter\amos\videoconference\AmosVideoconference',
'rbacEnabled' => false,
],
],
......@@ -36,7 +36,7 @@ to the require section of your `composer.json` file.
### 3. Apply migrations
```bash
php yii migrate/up --migrationPath=@vendor/elitedivision/amos-videoconference/src/migrations
php yii migrate/up --migrationPath=@vendor/arter/amos-videoconference/src/migrations
```
or add this row to your migrations config in console:
......@@ -44,7 +44,7 @@ or add this row to your migrations config in console:
```php
<?php
return [
'@vendor/elitedivision/amos-videoconference/src/migrations',
'@vendor/arter/amos-videoconference/src/migrations',
];
```
......
......@@ -6,7 +6,7 @@
"video",
"conference"
],
"homepage": "http://www.elitedivision.it/",
"homepage": "http://www.arter.it/",
"type": "component",
"require": {
"php": ">=5.4.0",
......@@ -16,7 +16,7 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\videoconference\\": "src"
"arter\\amos\\videoconference\\": "src"
}
},
"fxp-asset": {
......
......@@ -5,21 +5,21 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference
* @package arter\amos\videoconference
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\videoconference;
namespace arter\amos\videoconference;
use elitedivision\amos\core\module\AmosModule;
use elitedivision\amos\core\module\ModuleInterface;
use arter\amos\core\module\AmosModule;
use arter\amos\core\module\ModuleInterface;
use Yii;
/**
* Class AmosVideoconference
* @package elitedivision\amos\videoconference
* @package arter\amos\videoconference
*/
class AmosVideoconference extends AmosModule implements ModuleInterface
{
......@@ -34,7 +34,7 @@ class AmosVideoconference extends AmosModule implements ModuleInterface
public $name = 'Videoconference';
public $controllerNamespace = 'elitedivision\amos\videoconference\controllers';
public $controllerNamespace = 'arter\amos\videoconference\controllers';
public $config = [];
......@@ -66,7 +66,7 @@ class AmosVideoconference extends AmosModule implements ModuleInterface
{
parent::init();
\Yii::setAlias('@elitedivision/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
// initialize the module with the configuration loaded from config.php
$config = require(__DIR__ . DIRECTORY_SEPARATOR . self::$CONFIG_FOLDER . DIRECTORY_SEPARATOR . 'config.php');
Yii::configure($this,$config );
......
......@@ -5,26 +5,26 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\moodle\assets
* @package arter\amos\moodle\assets
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\videoconference\assets;
namespace arter\amos\videoconference\assets;
use yii\web\AssetBundle;
use Yii;
/**
* Class VideoconferenceAsset
* @package elitedivision\amos\videoconference\assets
* @package arter\amos\videoconference\assets
*/
class VideoconferenceAsset extends AssetBundle {
/**
* @inheritdoc
*/
public $sourcePath = '@vendor/elitedivision/amos-videoconference/src/assets/web';
public $sourcePath = '@vendor/arter/amos-videoconference/src/assets/web';
public $publishOptions = [
'forceCopy' => YII_DEBUG,
];
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference
* @package arter\amos\videoconference
* @category CategoryName
* @author Elite Division S.r.l.
*/
$jitsiDomain = "meet.test.demotestwip.it";
$jitsiDomain = "";
return [
'config' => [
......
......@@ -4,19 +4,19 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\videoconference\controllers;
namespace arter\amos\videoconference\controllers;
//namespace console\controllers;
use elitedivision\amos\admin\models\UserProfile;
use elitedivision\amos\videoconference\AmosVideoconference;
use elitedivision\amos\videoconference\models\Videoconf;
use elitedivision\amos\videoconference\models\VideoconfUsersMm;
use elitedivision\amos\videoconference\utils\EmailUtil;
use arter\amos\admin\models\UserProfile;
use arter\amos\videoconference\AmosVideoconference;
use arter\amos\videoconference\models\Videoconf;
use arter\amos\videoconference\models\VideoconfUsersMm;
use arter\amos\videoconference\utils\EmailUtil;
use yii\console\Controller;
use yii\helpers\Console;
use Yii;
......
......@@ -5,14 +5,14 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference\controllers
* @package arter\amos\videoconference\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\videoconference\controllers;
namespace arter\amos\videoconference\controllers;
use elitedivision\amos\dashboard\controllers\base\DashboardController;
use arter\amos\dashboard\controllers\base\DashboardController;
use Yii;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
......@@ -23,7 +23,7 @@ class DefaultController extends DashboardController {
/**
* @var string $layout Layout per la dashboard interna.
*/
public $layout = "@vendor/elitedivision/amos-core/views/layouts/dashboard_interna";
public $layout = "@vendor/arter/amos-core/views/layouts/dashboard_interna";
/**
......
......@@ -4,34 +4,34 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\videoconference\controllers;
namespace arter\amos\videoconference\controllers;
use elitedivision\amos\admin\models\UserProfile;
use elitedivision\amos\core\user\User;
use elitedivision\amos\core\utilities\Email;
use elitedivision\amos\notificationmanager\models\NotificationsRead;
use elitedivision\amos\videoconference\models\base\UserProfileForm;
use elitedivision\amos\videoconference\models\VideoconfUsersMm;
use elitedivision\amos\videoconference\utils\EmailUtil;
use arter\amos\admin\models\UserProfile;
use arter\amos\core\user\User;
use arter\amos\core\utilities\Email;
use arter\amos\notificationmanager\models\NotificationsRead;
use arter\amos\videoconference\models\base\UserProfileForm;
use arter\amos\videoconference\models\VideoconfUsersMm;
use arter\amos\videoconference\utils\EmailUtil;
use Yii;
use elitedivision\amos\videoconference\models\Videoconf;
use elitedivision\amos\videoconference\models\VideoconfSearch;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\helpers\T;
use arter\amos\videoconference\models\Videoconf;
use arter\amos\videoconference\models\VideoconfSearch;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\icons\AmosIcons;
use arter\amos\core\helpers\Html;
use arter\amos\core\helpers\T;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\data\ActiveDataProvider;
use elitedivision\amos\videoconference\AmosVideoconference;
use arter\amos\videoconference\AmosVideoconference;
/**
* This is the class for controller "VideoconfController".
......@@ -142,15 +142,15 @@ class VideoconfController extends CrudController
public function actionTest()
{
//$videoconference = new \elitedivision\amos\videoconference\models\Videoconf();
$videoconference = \elitedivision\amos\videoconference\models\Videoconf::findOne(1);
//$videoconference = new \arter\amos\videoconference\models\Videoconf();
$videoconference = \arter\amos\videoconference\models\Videoconf::findOne(1);
// pr($videoconference->toArray(), 'videoconference');//exit;
$users = $videoconference->getVideoconfUsersMms()->all();
// $users = $videoconference->getVideoconfUsers();
foreach ($users as $u) {
pr($u->toArray(), '$u relazione'); //exit;
$userProfile = \elitedivision\amos\admin\models\UserProfile::findOne($u->user_id);
$userProfile = \arter\amos\admin\models\UserProfile::findOne($u->user_id);
// pr($userProfile->toArray(), '$userProfile');//exit;
$user = $userProfile->getUser()->one();
// pr($user->toArray(), '$user');//exit;
......@@ -242,7 +242,7 @@ class VideoconfController extends CrudController
*/
public function actionCreate()
{
$this->layout = "@vendor/elitedivision/amos-core/views/layouts/form";
$this->layout = "@vendor/arter/amos-core/views/layouts/form";
$model = new Videoconf;
//carico i partecipanti ottenendo le variabili $this->model_partecipanti e $this->partecipanti popolate
......@@ -316,7 +316,7 @@ class VideoconfController extends CrudController
*/
public function actionUpdate($id)
{
$this->layout = "@vendor/elitedivision/amos-core/views/layouts/form";
$this->layout = "@vendor/arter/amos-core/views/layouts/form";
$model = $this->findModel($id);
//carico i partecipanti ottenendo le variabili $this->model_partecipanti e $this->partecipanti popolate
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference\i18n\en-GB
* @package arter\amos\videoconference\i18n\en-GB
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference\i18n\en-US
* @package arter\amos\videoconference\i18n\en-US
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
<?php
namespace elitedivision\amos\videoconference\i18n\grammar;
namespace arter\amos\videoconference\i18n\grammar;
use elitedivision\amos\core\interfaces\ModelGrammarInterface;
use elitedivision\amos\videoconference\AmosVideoconference;
use arter\amos\core\interfaces\ModelGrammarInterface;
use arter\amos\videoconference\AmosVideoconference;
/**
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\comments\i18n\it-IT
* @package arter\amos\comments\i18n\it-IT
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,13 +5,13 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\admin
* @package arter\amos\admin
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use elitedivision\amos\videoconference\AmosVideoconference;
use arter\amos\videoconference\AmosVideoconference;
/* @var $this yii\web\View */
/* @var $user common\models\User */
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -12,7 +12,7 @@
use yii\helpers\Html;
use elitedivision\amos\videoconference\AmosVideoconference;
use arter\amos\videoconference\AmosVideoconference;
?>
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference\migrations
* @package arter\amos\videoconference\migrations
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\core\migration\AmosMigrationTableCreation;
use arter\amos\core\migration\AmosMigrationTableCreation;
/**
* Class m171204_121534_create_table_videoconf
......
......@@ -4,12 +4,12 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\core\migration\AmosMigrationPermissions;
use arter\amos\core\migration\AmosMigrationPermissions;
use yii\rbac\Permission;
/**
......@@ -37,14 +37,14 @@ class m171204_125957_videoconference_permissions extends AmosMigrationPermission
'name' => 'JoinOwnVideoconference',
'type' => Permission::TYPE_PERMISSION,
'description' => 'Permesso di CREATE sul model Videoconf',
'ruleName' => \elitedivision\amos\videoconference\rules\JoinOwnVideoconference::className(),
'ruleName' => \arter\amos\videoconference\rules\JoinOwnVideoconference::className(),
'parent' => ['ADMIN', 'BASIC_USER', 'AMMINISTRATORE_VIDEOCONF']
],
[
'name' => 'UpdateOwnVideoconference',
'type' => Permission::TYPE_PERMISSION,
'description' => 'Permesso di CREATE sul model Videoconf',
'ruleName' => \elitedivision\amos\videoconference\rules\UpdateOwnVideoconference::className(),
'ruleName' => \arter\amos\videoconference\rules\UpdateOwnVideoconference::className(),
'parent' => ['ADMIN', 'BASIC_USER', 'AMMINISTRATORE_VIDEOCONF']
],
[
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\videoconference\migrations
* @package arter\amos\videoconference\migrations
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\core\migration\AmosMigrationTableCreation;
use arter\amos\core\migration\AmosMigrationTableCreation;
/**
* Class m171204_135754_create_table_videoconf_users_mm
......
......@@ -4,12 +4,12 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\core\migration\AmosMigrationWidgets;
use elitedivision\amos\dashboard\models\AmosWidgets;
use arter\amos\core\migration\AmosMigrationWidgets;
use arter\amos\dashboard\models\AmosWidgets;
/**
......@@ -25,11 +25,11 @@ class m171207_100000_add_widget_videoconference extends AmosMigrationWidgets
{
$this->widgets = [
[
'classname' => \elitedivision\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
'classname' => \arter\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
'type' => AmosWidgets::TYPE_ICON,
'module' => self::MODULE_NAME,
'dashboard_visible' => 1,
//'child_of' => \elitedivision\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
//'child_of' => \arter\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
]
];
}
......
......@@ -4,11 +4,11 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\core\migration\AmosMigrationPermissions;
use arter\amos\core\migration\AmosMigrationPermissions;
use yii\rbac\Permission;
......@@ -26,7 +26,7 @@ class m171207_100100_add_auth_item_videoconference extends AmosMigrationPermissi
return [
[
'name' => \elitedivision\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
'name' => \arter\amos\videoconference\widgets\icons\WidgetIconVideoconference::className(),
'type' => Permission::TYPE_PERMISSION,
'description' => $prefixStr . 'WidgetIconVideoconference',
'ruleName' => null,
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\community\migrations
* @package arter\amos\community\migrations
* @category CategoryName
* @author Elite Division S.r.l.
*/
use elitedivision\amos\videoconference\models\Videoconf;
use arter\amos\videoconference\models\Videoconf;
use yii\db\Migration;
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment