diff --git a/modules/backend/controllers/AccessLogs.php b/modules/backend/controllers/AccessLogs.php index 7057830f9..512048faf 100644 --- a/modules/backend/controllers/AccessLogs.php +++ b/modules/backend/controllers/AccessLogs.php @@ -10,18 +10,29 @@ use System\Classes\SettingsManager; * * @package october\system * @author Alexey Bobkov, Samuel Georges - * */ class AccessLogs extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.ListController' + \Backend\Behaviors\ListController::class ]; - public $requiredPermissions = ['system.access_logs']; - + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.access_logs']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/backend/controllers/Auth.php b/modules/backend/controllers/Auth.php index 6a6c72cb4..54118e771 100644 --- a/modules/backend/controllers/Auth.php +++ b/modules/backend/controllers/Auth.php @@ -21,8 +21,14 @@ use Exception; */ class Auth extends Controller { + /** + * @var array Public controller actions + */ protected $publicActions = ['index', 'signin', 'signout', 'restore', 'reset']; + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/backend/controllers/Index.php b/modules/backend/controllers/Index.php index 8536f1e84..962186efd 100644 --- a/modules/backend/controllers/Index.php +++ b/modules/backend/controllers/Index.php @@ -18,6 +18,7 @@ class Index extends Controller use \Backend\Traits\InspectableContainer; /** + * @var array Permissions required to view this page. * @see checkPermissionRedirect() */ public $requiredPermissions = []; diff --git a/modules/backend/controllers/Preferences.php b/modules/backend/controllers/Preferences.php index fb6618adb..9a79f88b5 100644 --- a/modules/backend/controllers/Preferences.php +++ b/modules/backend/controllers/Preferences.php @@ -18,11 +18,17 @@ use Backend\Models\Preference as PreferenceModel; class Preferences extends Controller { public $implement = [ - 'Backend.Behaviors.FormController', + \Backend\Behaviors\FormController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['backend.manage_preferences']; /** diff --git a/modules/backend/controllers/UserGroups.php b/modules/backend/controllers/UserGroups.php index 97b55e399..f0a0dab22 100644 --- a/modules/backend/controllers/UserGroups.php +++ b/modules/backend/controllers/UserGroups.php @@ -14,16 +14,32 @@ use System\Classes\SettingsManager; */ class UserGroups extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['backend.manage_users']; + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/backend/controllers/UserRoles.php b/modules/backend/controllers/UserRoles.php index 76587d1a2..942021cfe 100644 --- a/modules/backend/controllers/UserRoles.php +++ b/modules/backend/controllers/UserRoles.php @@ -16,16 +16,32 @@ use System\Classes\SettingsManager; */ class UserRoles extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['backend.manage_users']; + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/backend/controllers/Users.php b/modules/backend/controllers/Users.php index fbbdcc1d5..2b23ff085 100644 --- a/modules/backend/controllers/Users.php +++ b/modules/backend/controllers/Users.php @@ -16,18 +16,32 @@ use System\Classes\SettingsManager; */ class Users extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; - public $requiredPermissions = ['backend.manage_users']; - + /** + * @var array Permissions required to view this page. + */ public $bodyClass = 'compact-container'; + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/cms/controllers/Index.php b/modules/cms/controllers/Index.php index 5f421c95f..d0c7c4498 100644 --- a/modules/cms/controllers/Index.php +++ b/modules/cms/controllers/Index.php @@ -35,8 +35,14 @@ class Index extends Controller { use \Backend\Traits\InspectableContainer; + /** + * @var Cms\Classes\Theme + */ protected $theme; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = [ 'cms.manage_content', 'cms.manage_assets', diff --git a/modules/cms/controllers/Media.php b/modules/cms/controllers/Media.php index b157e75a1..9d7b6d0b5 100644 --- a/modules/cms/controllers/Media.php +++ b/modules/cms/controllers/Media.php @@ -12,6 +12,9 @@ use Cms\Widgets\MediaManager; */ class Media extends Controller { + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['media.*']; /** diff --git a/modules/cms/controllers/ThemeLogs.php b/modules/cms/controllers/ThemeLogs.php index 67ddbc77f..03bd0cd79 100644 --- a/modules/cms/controllers/ThemeLogs.php +++ b/modules/cms/controllers/ThemeLogs.php @@ -21,17 +21,32 @@ use Exception; */ class ThemeLogs extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; - public $requiredPermissions = ['system.access_logs']; - + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.access_logs']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/cms/controllers/ThemeOptions.php b/modules/cms/controllers/ThemeOptions.php index 11122ce57..6f44476ad 100644 --- a/modules/cms/controllers/ThemeOptions.php +++ b/modules/cms/controllers/ThemeOptions.php @@ -19,12 +19,21 @@ use Exception; */ class ThemeOptions extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController' + \Backend\Behaviors\FormController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['cms.manage_themes', 'cms.manage_theme_options']; /** diff --git a/modules/cms/controllers/Themes.php b/modules/cms/controllers/Themes.php index d2fec58f4..378ab6666 100644 --- a/modules/cms/controllers/Themes.php +++ b/modules/cms/controllers/Themes.php @@ -27,6 +27,9 @@ use Exception; */ class Themes extends Controller { + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['cms.manage_themes']; /** diff --git a/modules/system/controllers/EventLogs.php b/modules/system/controllers/EventLogs.php index 84fd5f55c..b303b978c 100644 --- a/modules/system/controllers/EventLogs.php +++ b/modules/system/controllers/EventLogs.php @@ -22,17 +22,32 @@ use Exception; */ class EventLogs extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; - public $requiredPermissions = ['system.access_logs']; - + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.access_logs']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/controllers/MailBrandSettings.php b/modules/system/controllers/MailBrandSettings.php index c210b2ed1..3a1181509 100644 --- a/modules/system/controllers/MailBrandSettings.php +++ b/modules/system/controllers/MailBrandSettings.php @@ -25,14 +25,26 @@ use Exception; */ class MailBrandSettings extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ \Backend\Behaviors\FormController::class ]; + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['system.manage_mail_templates']; + /** + * @var string HTML body tag class + */ public $bodyClass = 'compact-container'; /** diff --git a/modules/system/controllers/MailLayouts.php b/modules/system/controllers/MailLayouts.php index da913c2be..126797cd4 100644 --- a/modules/system/controllers/MailLayouts.php +++ b/modules/system/controllers/MailLayouts.php @@ -20,14 +20,26 @@ use Exception; */ class MailLayouts extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', + \Backend\Behaviors\FormController::class, ]; - public $requiredPermissions = ['system.manage_mail_templates']; - + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.manage_mail_templates']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/controllers/MailPartials.php b/modules/system/controllers/MailPartials.php index b7692d031..93536a2ed 100644 --- a/modules/system/controllers/MailPartials.php +++ b/modules/system/controllers/MailPartials.php @@ -20,14 +20,26 @@ use Exception; */ class MailPartials extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', + \Backend\Behaviors\FormController::class, ]; - public $requiredPermissions = ['system.manage_mail_templates']; - + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.manage_mail_templates']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/controllers/MailTemplates.php b/modules/system/controllers/MailTemplates.php index 5e0f95ad9..dc9c90e46 100644 --- a/modules/system/controllers/MailTemplates.php +++ b/modules/system/controllers/MailTemplates.php @@ -22,21 +22,36 @@ use Exception; */ class MailTemplates extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; - public $requiredPermissions = ['system.manage_mail_templates']; + /** + * @var array `FormController` configuration. + */ + public $formConfig = 'config_form.yaml'; + /** + * @var array `ListController` configuration. + */ public $listConfig = [ 'templates' => 'config_templates_list.yaml', 'layouts' => 'config_layouts_list.yaml', 'partials' => 'config_partials_list.yaml' ]; - public $formConfig = 'config_form.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.manage_mail_templates']; + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/controllers/RequestLogs.php b/modules/system/controllers/RequestLogs.php index 79d06e49e..e9a52eaad 100644 --- a/modules/system/controllers/RequestLogs.php +++ b/modules/system/controllers/RequestLogs.php @@ -21,17 +21,31 @@ use Exception; */ class RequestLogs extends Controller { + /** + * @var array Extensions implemented by this controller. + */ public $implement = [ - 'Backend.Behaviors.FormController', - 'Backend.Behaviors.ListController' + \Backend\Behaviors\FormController::class, + \Backend\Behaviors\ListController::class ]; - - public $requiredPermissions = ['system.access_logs']; - + /** + * @var array `FormController` configuration. + */ public $formConfig = 'config_form.yaml'; + /** + * @var array `ListController` configuration. + */ public $listConfig = 'config_list.yaml'; + /** + * @var array Permissions required to view this page. + */ + public $requiredPermissions = ['system.access_logs']; + + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index f2166dd28..bf3017d39 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -31,12 +31,29 @@ use Exception; */ class Updates extends Controller { - public $implement = ['Backend.Behaviors.ListController']; + /** + * @var array Extensions implemented by this controller. + */ + public $implement = [ + \Backend\Behaviors\ListController::class + ]; + /** + * @var array `ListController` configuration. + */ + public $listConfig = [ + 'list' => 'config_list.yaml', + 'manage' => 'config_manage_list.yaml' + ]; + + /** + * @var array Permissions required to view this page. + */ public $requiredPermissions = ['system.manage_updates']; - public $listConfig = ['list' => 'config_list.yaml', 'manage' => 'config_manage_list.yaml']; - + /** + * Constructor. + */ public function __construct() { parent::__construct(); diff --git a/modules/system/models/MailSetting.php b/modules/system/models/MailSetting.php index dd6a9c560..348ca9be8 100644 --- a/modules/system/models/MailSetting.php +++ b/modules/system/models/MailSetting.php @@ -24,7 +24,9 @@ class MailSetting extends Model /** * @var array Behaviors implemented by this model. */ - public $implement = ['System.Behaviors.SettingsModel']; + public $implement = [ + \System\Behaviors\SettingsModel::class + ]; /** * @var string Unique code