Пример #1
0
 public static function add_D2T_relation($Delivery_UID, $term_UID, $link_type, $user)
 {
     if (Lock::is_locked_by_user($Delivery_UID, 'DELIVERY_BASE', $user) == false) {
         debugLog::log("<i>[delivery.php:add_D2T_relation]</i> Delivery (" . $Delivery_UID . ") is not locked by the user (" . $user . ")");
         return null;
     }
     return O2TRelation::add_O2T_relation(array("column_name" => 'DELIVERY_BASE_ID', "value" => $Delivery_UID), $term_UID, $link_type, $user, 'R_LD2T', 'user');
 }
Пример #2
0
 public static function add_K2T_relation($Kbit_UID, $term_UID, $link_type, $user)
 {
     if (Lock::is_locked_by_user($Kbit_UID, 'KBIT_BASE', $user) == false) {
         debugLog::log("<i>[Kbits.php:add_K2T_relation]</i> Kbit (" . $Kbit_UID . ") is not locked by the user (" . $user . ")");
         return null;
     }
     return O2TRelation::add_O2T_relation(array("column_name" => 'KBIT_BASE_ID', "value" => $Kbit_UID), $term_UID, $link_type, $user, 'R_LK2T', 'user');
 }