| | |
| | | $session_id = $app->db->quote($session_id); |
| | | |
| | | $sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'"; |
| | | $app->db->query($sql); |
| | | return $app->db->affectedRows() == 1; |
| | | if($app->db->query($sql) != false) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | //** protected functions ----------------------------------------------------------------------------------- |
| | |
| | | |
| | | //* Load the form definition |
| | | $app->remoting_lib->loadFormDef($formdef_file); |
| | | |
| | | //* get old record and merge with params, so only new values have to be set in $params |
| | | $old_rec = $app->remoting_lib->getDataRecord($primary_id); |
| | | $params = $app->functions->array_merge($old_rec,$params); |
| | | |
| | | //* Get the SQL query |
| | | $sql = $app->remoting_lib->getSQL($params, 'UPDATE', $primary_id); |