mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Move widget classes that are exclusive to their own space
This commit is contained in:
parent
2855a4e344
commit
3cfc7b6a5d
@ -36,7 +36,7 @@ class Table extends WidgetBase
|
||||
protected $recordsKeyFrom;
|
||||
|
||||
protected $dataSourceAliases = [
|
||||
'client' => '\Backend\Classes\TableClientMemoryDataSource'
|
||||
'client' => '\Backend\Widgets\Table\ClientMemoryDataSource'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ class Table extends WidgetBase
|
||||
|
||||
/**
|
||||
* Returns the data source object.
|
||||
* @return \Backend\Classes\TableDataSourceBase
|
||||
* @return \Backend\Widgets\Table\DataSourceBase
|
||||
*/
|
||||
public function getDataSource()
|
||||
{
|
||||
@ -174,7 +174,7 @@ class Table extends WidgetBase
|
||||
|
||||
protected function isClientDataSource()
|
||||
{
|
||||
return $this->dataSource instanceof \Backend\Classes\TableClientMemoryDataSource;
|
||||
return $this->dataSource instanceof \Backend\Widgets\Table\ClientMemoryDataSource;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php namespace Backend\Classes;
|
||||
<?php namespace Backend\Widgets\Table;
|
||||
|
||||
/**
|
||||
* The client-memory data source for the Table widget.
|
||||
*/
|
||||
class TableClientMemoryDataSource extends TableDataSourceBase
|
||||
class ClientMemoryDataSource extends TableDataSourceBase
|
||||
{
|
||||
/**
|
||||
* @var array Keeps the data source data.
|
@ -1,9 +1,9 @@
|
||||
<?php namespace Backend\Classes;
|
||||
<?php namespace Backend\Widgets\Table;
|
||||
|
||||
/**
|
||||
* Base class for the Table widget data sources.
|
||||
*/
|
||||
abstract class TableDataSourceBase
|
||||
abstract class DataSourceBase
|
||||
{
|
||||
/**
|
||||
* @var string Specifies a name of record's key column
|
@ -198,7 +198,7 @@ The widget is configured with YAML file. Required parameters:
|
||||
|
||||
The `dataSource` parameter can take aliases for some data source classes for the simpler configuration syntax. Known aliases are:
|
||||
|
||||
* `client` = \Backend\Classes\TableClientMemoryDataSource
|
||||
* `client` = \Backend\Widgets\Table\ClientMemoryDataSource
|
||||
|
||||
### Column definitions
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user