Move widget classes that are exclusive to their own space

This commit is contained in:
Samuel Georges 2016-01-16 16:02:28 +11:00
parent 2855a4e344
commit 3cfc7b6a5d
4 changed files with 8 additions and 8 deletions

View File

@ -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;
}
/*

View File

@ -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.

View File

@ -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

View File

@ -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