mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +00:00
Mixed parameter support
This commit is contained in:
parent
3dbb059994
commit
6718fba177
|
|
@ -82,16 +82,20 @@ abstract class SettingsAbstract implements OptionsInterface
|
||||||
/**
|
/**
|
||||||
* Get option by key.
|
* Get option by key.
|
||||||
*
|
*
|
||||||
* @param string[] $columns Column values for filtering
|
* @param string|string[] $columns Column values for filtering
|
||||||
*
|
*
|
||||||
* @return mixed Option value
|
* @return mixed Option value
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function get(array $columns)
|
public function get($columns)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
if (!is_array($columns)) {
|
||||||
|
$columns = [$columns];
|
||||||
|
}
|
||||||
|
|
||||||
$options = [];
|
$options = [];
|
||||||
|
|
||||||
switch ($this->connection->getType()) {
|
switch ($this->connection->getType()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user