-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ff7c5d
commit bef8a28
Showing
3 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
<?php | ||
/** | ||
* @link https://cms.skeeks.com/ | ||
* @copyright Copyright (c) 2010 SkeekS | ||
* @license https://cms.skeeks.com/license/ | ||
* @author Semenov Alexander <[email protected]> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (СкикС) | ||
* @date 28.02.2017 | ||
*/ | ||
|
||
namespace skeeks\cms\dbDumper\controllers; | ||
|
||
use skeeks\cms\backend\BackendController; | ||
use skeeks\cms\helpers\RequestResponse; | ||
use skeeks\cms\modules\admin\controllers\AdminController; | ||
|
||
/** | ||
* Class AdminBackupController | ||
* @package skeeks\cms\dbDumper\controllers | ||
* @author Semenov Alexander <[email protected]> | ||
*/ | ||
class AdminBackupController extends AdminController | ||
class AdminBackupController extends BackendController | ||
{ | ||
public function init() | ||
{ | ||
$this->name = \Yii::t('skeeks/dbDumper', "Backups"); | ||
|
||
|
||
$this->generateAccessActions = false; | ||
$this->accessCallback = function () { | ||
if (!\Yii::$app->cms->site->is_default) { | ||
return false; | ||
} | ||
return \Yii::$app->user->can($this->uniqueId); | ||
}; | ||
|
||
|
||
parent::init(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
<?php | ||
/** | ||
* @link https://cms.skeeks.com/ | ||
* @copyright Copyright (c) 2010 SkeekS | ||
* @license https://cms.skeeks.com/license/ | ||
* @author Semenov Alexander <[email protected]> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (�����) | ||
* @date 19.04.2016 | ||
*/ | ||
|
||
namespace skeeks\cms\dbDumper\controllers; | ||
|
||
use skeeks\cms\backend\BackendController; | ||
use skeeks\cms\helpers\RequestResponse; | ||
use skeeks\cms\modules\admin\controllers\AdminController; | ||
|
||
/** | ||
* Class AdminSettingsController | ||
* @package skeeks\cms\dbDumper\controllers | ||
* @author Semenov Alexander <[email protected]> | ||
*/ | ||
class AdminSettingsController extends AdminController | ||
class AdminSettingsController extends BackendController | ||
{ | ||
public function init() | ||
{ | ||
$this->name = \Yii::t('skeeks/dbDumper', "Settings"); | ||
|
||
$this->generateAccessActions = false; | ||
$this->accessCallback = function () { | ||
if (!\Yii::$app->cms->site->is_default) { | ||
return false; | ||
} | ||
return \Yii::$app->user->can($this->uniqueId); | ||
}; | ||
|
||
parent::init(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
<?php | ||
/** | ||
* @link https://cms.skeeks.com/ | ||
* @copyright Copyright (c) 2010 SkeekS | ||
* @license https://cms.skeeks.com/license/ | ||
* @author Semenov Alexander <[email protected]> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (�����) | ||
* @date 19.04.2016 | ||
*/ | ||
|
||
namespace skeeks\cms\dbDumper\controllers; | ||
|
||
use skeeks\cms\modules\admin\controllers\AdminController; | ||
use skeeks\cms\backend\BackendController; | ||
use yii\data\ArrayDataProvider; | ||
|
||
/** | ||
* Class AdminStructureController | ||
* @package skeeks\cms\dbDumper\controllers | ||
* @author Semenov Alexander <[email protected]> | ||
*/ | ||
class AdminStructureController extends AdminController | ||
class AdminStructureController extends BackendController | ||
{ | ||
public function init() | ||
{ | ||
$this->name = \Yii::t('skeeks/dbDumper', "The structure of the database"); | ||
|
||
$this->generateAccessActions = false; | ||
$this->accessCallback = function () { | ||
if (!\Yii::$app->cms->site->is_default) { | ||
return false; | ||
} | ||
return \Yii::$app->user->can($this->uniqueId); | ||
}; | ||
|
||
parent::init(); | ||
} | ||
|
||
|