IniRepository: fix doc and method order

refs #13034
This commit is contained in:
Alexander A. Klimov 2016-11-03 16:00:20 +01:00
parent fb3f3ed788
commit e5b24eb467
2 changed files with 16 additions and 10 deletions

View File

@ -27,7 +27,13 @@ abstract class IniRepository extends Repository implements Extensible, Updatable
/**
* Per-table datasources
*
* @var Config[string]
* <code>
* array(
* $table => $datasource
* )
* </code>
*
* @var Config[]
*/
protected $datasources = array();
@ -60,6 +66,14 @@ abstract class IniRepository extends Repository implements Extensible, Updatable
}
}
/**
* {@inheritDoc}
*/
public function getDataSource($table = null)
{
return isset($this->datasources[$table]) ? $this->datasources[$table] : parent::getDataSource($table);
}
/**
* Return the tables for which triggers are available when inserting, updating or deleting rows
*
@ -316,12 +330,4 @@ abstract class IniRepository extends Repository implements Extensible, Updatable
unset($config[$keyColumn]);
return $section;
}
/**
* {@inheritDoc}
*/
public function getDataSource($table = null)
{
return isset($this->datasources[$table]) ? $this->datasources[$table] : parent::getDataSource($table);
}
}

View File

@ -263,7 +263,7 @@ abstract class Repository implements Selectable
}
/**
* Return the datasource being used for the table $table
* Return the datasource being used for the given table
*
* @param string $table
*