set_user_id($user_id); $entity_locking->unlock_entity(); } break; case 'poll': if(isset($entity_id) && isset($entity_type) && isset($user_id)){ $entity_locking = new entity_locking($entity_id*1, $entity_type*1); $entity_locking->set_user_id($user_id); $entity_locking->refresh_date(); } break; case 'check': if(isset($entity_id) && isset($entity_type) && isset($user_id)){ $entity_locking = new entity_locking($entity_id*1, $entity_type*1); print $entity_locking->is_available(); } break; }