Piotr Labudda 7 anni fa
parent
commit
bcda0d6282
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      SE/se-lib/RefParams.php

+ 2 - 2
SE/se-lib/RefParams.php

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