Ejemplo n.º 1
0
 public static function get_Kbit_details($UID, $user)
 {
     if (Lock::is_locked_by_user($UID, 'KBIT_BASE', $user)) {
         $kbit = Kbit::get_edited_kbit_by_UID($UID);
     } else {
         $kbit = Kbit::get_kbit_by_UID($UID);
     }
     // get locking user
     $locking_user = Lock::get_locking_user($UID, 'KBIT_BASE');
     if ($locking_user != null) {
         $kbit["LOCKING_USER"] = $locking_user;
     }
     return $kbit;
 }