mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 11:58:41 +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.
|
||||
*
|
||||
* @param string[] $columns Column values for filtering
|
||||
* @param string|string[] $columns Column values for filtering
|
||||
*
|
||||
* @return mixed Option value
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function get(array $columns)
|
||||
public function get($columns)
|
||||
{
|
||||
try {
|
||||
if (!is_array($columns)) {
|
||||
$columns = [$columns];
|
||||
}
|
||||
|
||||
$options = [];
|
||||
|
||||
switch ($this->connection->getType()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user