commit
59c9146b4f
|
|
@ -15,7 +15,6 @@ use Backend\Classes\ControllerBehavior;
|
|||
*/
|
||||
class ListController extends ControllerBehavior
|
||||
{
|
||||
|
||||
/**
|
||||
* @var array List definitions, keys for alias and value for configuration.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use October\Rain\Router\Helper as RouterHelper;
|
|||
*/
|
||||
class BackendHelper
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns a URL in context of the Backend
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use ArrayAccess;
|
|||
*/
|
||||
class FormTabs implements IteratorAggregate, ArrayAccess
|
||||
{
|
||||
|
||||
const SECTION_OUTSIDE = 'outside';
|
||||
const SECTION_PRIMARY = 'primary';
|
||||
const SECTION_SECONDARY = 'secondary';
|
||||
|
|
@ -176,5 +175,4 @@ class FormTabs implements IteratorAggregate, ArrayAccess
|
|||
{
|
||||
return isset($this->fields[$offset]) ? $this->fields[$offset] : null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use Str;
|
|||
*/
|
||||
abstract class FormWidgetBase extends WidgetBase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var FormField Object containing general form field information.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
*/
|
||||
class ListColumn
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string List column name.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Session;
|
|||
*/
|
||||
abstract class WidgetBase
|
||||
{
|
||||
|
||||
use \System\Traits\AssetMaker;
|
||||
use \System\Traits\ConfigMaker;
|
||||
use \System\Traits\ViewMaker;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use Exception;
|
|||
*/
|
||||
class AccessLogs extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.ListController'
|
||||
];
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Backend\Models\EditorPreferences as EditorPreferencesModel;
|
|||
*/
|
||||
class EditorPreferences extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.FormController',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
/**
|
||||
* Register Backend routes before all user routes.
|
||||
*/
|
||||
App::before(function ($request) {
|
||||
|
||||
/*
|
||||
* Other pages
|
||||
*/
|
||||
|
|
@ -16,5 +15,4 @@ App::before(function ($request) {
|
|||
* Entry point
|
||||
*/
|
||||
Route::any(Config::get('cms.backendUri', 'backend'), 'Backend\Classes\BackendController@run');
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Exception;
|
|||
*/
|
||||
class CmsException extends ApplicationException
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Cms\Classes\CmsCompoundObject A reference to a CMS object used for masking errors.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use System\Classes\ApplicationException;
|
|||
*/
|
||||
class CmsObjectQuery
|
||||
{
|
||||
|
||||
protected $useCache = false;
|
||||
|
||||
protected $cmsObject;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
/**
|
||||
* Register CMS routes before all user routes.
|
||||
*/
|
||||
App::before(function ($request) {
|
||||
|
||||
/*
|
||||
* The CMS module intercepts all URLs that were not
|
||||
* The CMS module intercepts all URLs that were not
|
||||
* handled by the back-end modules.
|
||||
*/
|
||||
Route::any('{slug}', 'Cms\Classes\Controller@run')->where('slug', '(.*)?');
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Exception;
|
|||
*/
|
||||
class Controller extends BaseController
|
||||
{
|
||||
|
||||
/**
|
||||
* Combines JavaScript and StyleSheet assets.
|
||||
* @param string $name Combined file code
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use System\Classes\ApplicationException;
|
|||
*/
|
||||
class ErrorHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* @var System\Classes\ExceptionBase A prepared mask exception used to mask any exception fired.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use System\Classes\ApplicationException;
|
|||
*/
|
||||
class ExceptionBase extends Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Exception If this exception is acting as a mask, this property stores the face exception.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use October\Rain\Database\ModelBehavior as ModelBehaviorBase;
|
|||
*/
|
||||
class ModelBehavior extends ModelBehaviorBase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var array Properties that must exist in the model using this behavior.
|
||||
*/
|
||||
|
|
@ -29,7 +28,8 @@ class ModelBehavior extends ModelBehaviorBase
|
|||
/*
|
||||
* Validate model properties
|
||||
*/
|
||||
foreach ($this->requiredProperties as $property) {
|
||||
foreach ($this->requiredProperties as $property)
|
||||
{
|
||||
if (!isset($model->{$property})) {
|
||||
throw new ApplicationException(Lang::get('system::lang.behavior.missing_property', [
|
||||
'class' => get_class($model),
|
||||
|
|
|
|||
|
|
@ -18,11 +18,9 @@ use Exception;
|
|||
*
|
||||
* @package october\system
|
||||
* @author Alexey Bobkov, Samuel Georges
|
||||
*
|
||||
*/
|
||||
class EventLogs extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.FormController',
|
||||
'Backend.Behaviors.ListController'
|
||||
|
|
|
|||
|
|
@ -17,11 +17,9 @@ use Exception;
|
|||
*
|
||||
* @package october\system
|
||||
* @author Alexey Bobkov, Samuel Georges
|
||||
*
|
||||
*/
|
||||
class MailLayouts extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.FormController',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,11 +20,9 @@ use Exception;
|
|||
*
|
||||
* @package october\system
|
||||
* @author Alexey Bobkov, Samuel Georges
|
||||
*
|
||||
*/
|
||||
class MailTemplates extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.FormController',
|
||||
'Backend.Behaviors.ListController'
|
||||
|
|
|
|||
|
|
@ -18,11 +18,9 @@ use Exception;
|
|||
*
|
||||
* @package october\system
|
||||
* @author Alexey Bobkov, Samuel Georges
|
||||
*
|
||||
*/
|
||||
class RequestLogs extends Controller
|
||||
{
|
||||
|
||||
public $implement = [
|
||||
'Backend.Behaviors.FormController',
|
||||
'Backend.Behaviors.ListController'
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use Model;
|
|||
*/
|
||||
class EventLog extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string The database table used by the model.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use Request;
|
|||
*/
|
||||
class RequestLog extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string The database table used by the model.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
/**
|
||||
* Register System routes before all user routes.
|
||||
*/
|
||||
App::before(function ($request) {
|
||||
|
||||
/*
|
||||
* Combine JavaScript and StyleSheet assets
|
||||
*/
|
||||
Route::any('combine/{file}', 'System\Classes\Controller@combine');
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue