|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
/**
|
|
|
* Usage:
|
|
|
- * - RefParams::setParam(124, 11, 22, 'key', 'value');
|
|
|
+ * - RefParams::addParam(124, 11, 22, 'key', 'value');
|
|
|
* - RefParams::getLastParam(124, 11, 22, 'key'); // return last inserted value
|
|
|
* - RefParams::getParams(124, 11, 22, 'key'); // return all values
|
|
|
* - RefParams::getAllParams(124, 11, 22); // return all key and values
|
|
|
@@ -53,7 +53,7 @@ class RefParams {
|
|
|
");
|
|
|
}
|
|
|
|
|
|
- static function setParam($idRef, $pk, $remotePk, $name, $value) {
|
|
|
+ static function addParam($idRef, $pk, $remotePk, $name, $value) {
|
|
|
self::validateBaseArgs($idRef, $pk, $remotePk);
|
|
|
if (!$name) throw new Exception("Wrong ref param name");
|
|
|
DB::getPDO()->insert("CRM_REF_PARAMS", [
|