mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
28 lines
583 B
PHP
28 lines
583 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
class Import_API_UserInput {
|
|
protected $valuemap;
|
|
|
|
function __construct($values = array()) {
|
|
$this->valuemap = $values;
|
|
}
|
|
|
|
function get($key) {
|
|
if(isset($this->valuemap[$key])) {
|
|
return $this->valuemap[$key];
|
|
}
|
|
return '';
|
|
}
|
|
|
|
function has($key) {
|
|
return isset($this->valuemap[$key]);
|
|
}
|
|
|
|
function set($key, $newvalue) {
|
|
$this->valuemap[$key]= $newvalue;
|
|
}
|
|
} |