Commit c9b11588 authored by Daniele's avatar Daniele
Browse files

Arterized

parent 2c7f80fc
......@@ -7,25 +7,25 @@ You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
```
"open2/amos-ticket": "dev-master",
"arter/amos-ticket": "dev-master",
```
or run command bash:
```bash
composer require "open2/amos-ticket:dev-master"
composer require "arter/amos-ticket:dev-master"
```
Enable the News modules in modules-amos.php, add :
```php
'ticket' => [
'class' => 'open2\amos\ticket\AmosTicket',
'class' => 'arter\amos\ticket\AmosTicket',
],
```
add news migrations to console modules (console/config/migrations-amos.php):
```
'@vendor/open2/amos-ticket/src/migrations'
'@vendor/arter/amos-ticket/src/migrations'
```
Add ticket to Comments:
......@@ -36,7 +36,7 @@ Add ticket to Comments:
'modelsEnabled' => [
.
.
'open2\amos\ticket\models\Ticket', //line to add
'arter\amos\ticket\models\Ticket', //line to add
.
.
],
......
{
"name": "open2/amos-ticket",
"name": "arter/amos-ticket",
"description": "Amos Ticket",
"type": "component",
"keywords": [
......@@ -15,7 +15,7 @@
},
"autoload": {
"psr-4": {
"open2\\amos\\ticket\\": "src"
"arter\\amos\\ticket\\": "src"
}
}
}
\ No newline at end of file
}
......@@ -5,33 +5,33 @@
* Arter
*
*
* @package open2\amos\ticket
* @package arter\amos\ticket
* @category CategoryName
*/
namespace open2\amos\ticket;
namespace arter\amos\ticket;
use arter\amos\core\interfaces\CmsModuleInterface;
use arter\amos\core\interfaces\SearchModuleInterface;
use arter\amos\core\module\AmosModule;
use arter\amos\core\module\ModuleInterface;
use arter\amos\core\user\User;
use open2\amos\ticket\models\search\TicketFaqSearch;
use open2\amos\ticket\models\TicketFaq;
use open2\amos\ticket\widgets\icons\WidgetIconTicketAdminFaq;
use open2\amos\ticket\widgets\icons\WidgetIconTicketAll;
use open2\amos\ticket\widgets\icons\WidgetIconTicketCategorie;
use open2\amos\ticket\widgets\icons\WidgetIconTicketClosed;
use open2\amos\ticket\widgets\icons\WidgetIconTicketDashboard;
use open2\amos\ticket\widgets\icons\WidgetIconTicketFaq;
use open2\amos\ticket\widgets\icons\WidgetIconTicketProcessing;
use open2\amos\ticket\widgets\icons\WidgetIconTicketWaiting;
use open2\amos\ticket\models\Ticket;
use arter\amos\ticket\models\search\TicketFaqSearch;
use arter\amos\ticket\models\TicketFaq;
use arter\amos\ticket\widgets\icons\WidgetIconTicketAdminFaq;
use arter\amos\ticket\widgets\icons\WidgetIconTicketAll;
use arter\amos\ticket\widgets\icons\WidgetIconTicketCategorie;
use arter\amos\ticket\widgets\icons\WidgetIconTicketClosed;
use arter\amos\ticket\widgets\icons\WidgetIconTicketDashboard;
use arter\amos\ticket\widgets\icons\WidgetIconTicketFaq;
use arter\amos\ticket\widgets\icons\WidgetIconTicketProcessing;
use arter\amos\ticket\widgets\icons\WidgetIconTicketWaiting;
use arter\amos\ticket\models\Ticket;
use Yii;
/**
* Class AmosTicket
* @package open2\amos\ticket
* @package arter\amos\ticket
*/
class AmosTicket extends AmosModule implements ModuleInterface, SearchModuleInterface, CmsModuleInterface
{
......@@ -60,10 +60,10 @@ class AmosTicket extends AmosModule implements ModuleInterface, SearchModuleInte
public function init()
{
parent::init();
\Yii::setAlias('@open2/amos/' . static::getModuleName() . '/models', __DIR__ . '/models');
\Yii::setAlias('@open2/amos/' . static::getModuleName() . '/controllers', __DIR__ . '/controllers');
\Yii::setAlias('@open2/amos/' . static::getModuleName() . '/widgets/icons', __DIR__ . '/widgets/icons');
\Yii::setAlias('@open2/amos/' . static::getModuleName() . '/migrations', __DIR__ . '/migrations');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/models', __DIR__ . '/models');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/controllers', __DIR__ . '/controllers');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/widgets/icons', __DIR__ . '/widgets/icons');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/migrations', __DIR__ . '/migrations');
// \Yii::configure($this, require(__DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'));
//
......
......@@ -5,25 +5,25 @@
* Arter
*
*
* @package open2\amos\ticket\assets
* @package arter\amos\ticket\assets
* @category CategoryName
*/
namespace open2\amos\ticket\assets;
namespace arter\amos\ticket\assets;
use arter\amos\core\widget\WidgetAbstract;
use yii\web\AssetBundle;
/**
* Class TicketAsset
* @package open2\amos\ticket\assets
* @package arter\amos\ticket\assets
*/
class TicketAsset extends AssetBundle
{
/**
* @inheritdoc
*/
public $sourcePath = '@vendor/open2/amos-ticket/src/assets/web';
public $sourcePath = '@vendor/arter/amos-ticket/src/assets/web';
/**
* @inheritdoc
......
......@@ -5,7 +5,7 @@
* Arter
*
*
* @package open2\amos\ticket\config
* @package arter\amos\ticket\config
* @category CategoryName
*/
......
......@@ -5,7 +5,7 @@
* Arter
*
*
* @package open2\amos\ticket\config
* @package arter\amos\ticket\config
* @category CategoryName
*/
......
......@@ -5,17 +5,17 @@
* Arter
*
*
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
* @category CategoryName
*/
namespace open2\amos\ticket\controllers;
namespace arter\amos\ticket\controllers;
use arter\amos\core\controllers\CrudController;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use open2\amos\ticket\AmosTicket;
use open2\amos\ticket\models\search\TicketCategorieSearch;
use open2\amos\ticket\models\TicketCategorie;
use arter\amos\ticket\AmosTicket;
use arter\amos\ticket\models\search\TicketCategorieSearch;
use arter\amos\ticket\models\TicketCategorie;
use Yii;
use yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
......@@ -24,10 +24,10 @@ use yii\helpers\Url;
/**
* Class AssistenzaController
*
* @property \open2\amos\ticket\models\TicketCategorie $model
* @property \open2\amos\ticket\models\search\TicketCategorieSearch $modelSearch
* @property \arter\amos\ticket\models\TicketCategorie $model
* @property \arter\amos\ticket\models\search\TicketCategorieSearch $modelSearch
*
* @packageopen2\amos\ticket\controllers
* @packagearter\amos\ticket\controllers
*/
class AssistenzaController extends CrudController
{
......
......@@ -5,18 +5,18 @@
* Arter
*
*
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
* @category CategoryName
*/
namespace open2\amos\ticket\controllers;
namespace arter\amos\ticket\controllers;
use arter\amos\dashboard\controllers\base\DashboardController;
use Yii;
/**
* Class DefaultController
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
*/
class DefaultController extends DashboardController
{
......
......@@ -5,16 +5,16 @@
* Arter
*
*
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
* @category CategoryName
*/
namespace open2\amos\ticket\controllers;
namespace arter\amos\ticket\controllers;
/**
* Class TicketCategorieController
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
*/
class TicketCategorieController extends \open2\amos\ticket\controllers\base\TicketCategorieController
class TicketCategorieController extends \arter\amos\ticket\controllers\base\TicketCategorieController
{
}
......@@ -5,18 +5,18 @@
* Arter
*
*
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
* @category CategoryName
*/
namespace open2\amos\ticket\controllers;
namespace arter\amos\ticket\controllers;
use arter\amos\core\exceptions\AmosException;
use open2\amos\ticket\AmosTicket;
use open2\amos\ticket\assets\TicketAsset;
use open2\amos\ticket\models\search\TicketSearch;
use open2\amos\ticket\models\Ticket;
use open2\amos\ticket\models\TicketCategorie;
use arter\amos\ticket\AmosTicket;
use arter\amos\ticket\assets\TicketAsset;
use arter\amos\ticket\models\search\TicketSearch;
use arter\amos\ticket\models\Ticket;
use arter\amos\ticket\models\TicketCategorie;
use raoul2000\workflow\base\WorkflowException;
use Yii;
use yii\db\Expression;
......@@ -29,9 +29,9 @@ use yii\helpers\Url;
/**
* Class TicketController
* This is the class for controller "TicketController".
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
*/
class TicketController extends \open2\amos\ticket\controllers\base\TicketController
class TicketController extends \arter\amos\ticket\controllers\base\TicketController
{
/**
......
......@@ -5,16 +5,16 @@
* Arter
*
*
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
* @category CategoryName
*/
namespace open2\amos\ticket\controllers;
namespace arter\amos\ticket\controllers;
/**
* Class TicketFaqController
* This is the class for controller "TicketFaqController".
* @package open2\amos\ticket\controllers
* @package arter\amos\ticket\controllers
*/
class TicketFaqController extends base\TicketFaqController
{
......
<?php
namespace open2\amos\ticket\controllers\api;
namespace arter\amos\ticket\controllers\api;
/**
* This is the class for REST controller "TicketController".
......@@ -11,5 +11,5 @@ use yii\helpers\ArrayHelper;
class TicketController extends \yii\rest\ActiveController
{
public $modelClass = 'open2\amos\ticket\models\Ticket';
public $modelClass = 'arter\amos\ticket\models\Ticket';
}
<?php
namespace open2\amos\ticket\controllers\api;
namespace arter\amos\ticket\controllers\api;
/**
* This is the class for REST controller "TicketFaqController".
......@@ -11,5 +11,5 @@ use yii\helpers\ArrayHelper;
class TicketFaqController extends \yii\rest\ActiveController
{
public $modelClass = 'open2\amos\ticket\models\TicketFaq';
public $modelClass = 'arter\amos\ticket\models\TicketFaq';
}
......@@ -5,11 +5,11 @@
* Arter
*
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
* @category CategoryName
*/
namespace open2\amos\ticket\controllers\base;
namespace arter\amos\ticket\controllers\base;
use arter\amos\community\models\Community;
use arter\amos\core\controllers\CrudController;
......@@ -17,11 +17,11 @@ use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\cwh\AmosCwh;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use open2\amos\ticket\AmosTicket;
use open2\amos\ticket\models\base\UserProfileForm;
use open2\amos\ticket\models\search\TicketCategorieSearch;
use open2\amos\ticket\models\TicketCategorie;
use open2\amos\ticket\models\TicketCategorieUsersMm;
use arter\amos\ticket\AmosTicket;
use arter\amos\ticket\models\base\UserProfileForm;
use arter\amos\ticket\models\search\TicketCategorieSearch;
use arter\amos\ticket\models\TicketCategorie;
use arter\amos\ticket\models\TicketCategorieUsersMm;
use Yii;
use yii\helpers\Url;
......@@ -29,10 +29,10 @@ use yii\helpers\Url;
* Class TicketCategorieController
* TicketCategorieController implements the CRUD actions for TicketCategorie model.
*
* @property \open2\amos\ticket\models\TicketCategorie $model
* @property \open2\amos\ticket\models\search\TicketCategorieSearch $modelSearch
* @property \arter\amos\ticket\models\TicketCategorie $model
* @property \arter\amos\ticket\models\search\TicketCategorieSearch $modelSearch
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
*/
class TicketCategorieController extends CrudController
{
......
......@@ -5,20 +5,20 @@
* Arter
*
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
* @category CategoryName
*/
namespace open2\amos\ticket\controllers\base;
namespace arter\amos\ticket\controllers\base;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use open2\amos\ticket\AmosTicket;
use open2\amos\ticket\models\search\TicketSearch;
use open2\amos\ticket\models\Ticket;
use open2\amos\ticket\models\TicketCategorie;
use arter\amos\ticket\AmosTicket;
use arter\amos\ticket\models\search\TicketSearch;
use arter\amos\ticket\models\Ticket;
use arter\amos\ticket\models\TicketCategorie;
use Yii;
use yii\helpers\Url;
......@@ -26,10 +26,10 @@ use yii\helpers\Url;
* Class TicketController
* TicketController implements the CRUD actions for Ticket model.
*
* @property \open2\amos\ticket\models\Ticket $model
* @property \open2\amos\ticket\models\search\TicketSearch $modelSearch
* @property \arter\amos\ticket\models\Ticket $model
* @property \arter\amos\ticket\models\search\TicketSearch $modelSearch
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
*/
class TicketController extends CrudController
{
......
......@@ -5,20 +5,20 @@
* Arter
*
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
* @category CategoryName
*/
namespace open2\amos\ticket\controllers\base;
namespace arter\amos\ticket\controllers\base;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use open2\amos\ticket\AmosTicket;
use open2\amos\ticket\models\search\TicketFaqSearch;
use open2\amos\ticket\models\Ticket;
use open2\amos\ticket\models\TicketFaq;
use arter\amos\ticket\AmosTicket;
use arter\amos\ticket\models\search\TicketFaqSearch;
use arter\amos\ticket\models\Ticket;
use arter\amos\ticket\models\TicketFaq;
use Yii;
use yii\db\Expression;
use yii\db\Query;
......@@ -30,10 +30,10 @@ use yii\helpers\Url;
* Class TicketFaqController
* TicketFaqController implements the CRUD actions for TicketFaq model.
*
* @property \open2\amos\ticket\models\TicketFaq $model
* @property \open2\amos\ticket\models\search\TicketFaqSearch $modelSearch
* @property \arter\amos\ticket\models\TicketFaq $model
* @property \arter\amos\ticket\models\search\TicketFaqSearch $modelSearch
*
* @package open2\amos\ticket\controllers\base
* @package arter\amos\ticket\controllers\base
*/
class TicketFaqController extends CrudController
{
......
......@@ -5,7 +5,7 @@
* Arter
*
*
* @package open2\amos\ticket\i18n\en-GB
* @package arter\amos\ticket\i18n\en-GB
* @category CategoryName
*/
......
......@@ -5,7 +5,7 @@
* Arter
*
*
* @package open2\amos\ticket\i18n\en-US
* @package arter\amos\ticket\i18n\en-US
* @category CategoryName
*/
......
......@@ -5,18 +5,18 @@
* Arter
*
*
* @package open2\amos\ticket\i18n\grammar
* @package arter\amos\ticket\i18n\grammar
* @category CategoryName
*/
namespace open2\amos\ticket\i18n\grammar;
namespace arter\amos\ticket\i18n\grammar;
use arter\amos\core\interfaces\ModelGrammarInterface;
use open2\amos\ticket\AmosTicket;
use arter\amos\ticket\AmosTicket;
/**
* Class TicketGrammar
* @package open2\amos\ticket\i18n\grammar
* @package arter\amos\ticket\i18n\grammar
*/
class TicketGrammar implements ModelGrammarInterface
{
......
......@@ -5,7 +5,7 @@
* Arter
*
*
* @package open2\amos\ticket\i18n\it-IT
* @package arter\amos\ticket\i18n\it-IT
* @category CategoryName
*/
......
Supports Markdown
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