| | |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_user_filter.tform.php', $client_id, $params); |
| | | $app->plugin->raiseEvent('mail:mail_user_filter:on_after_insert',$this); |
| | | $affected_rows = $this->insertQuery('../mail/form/mail_user_filter.tform.php', $client_id, $params,'mail:mail_user_filter:on_after_insert'); |
| | | // $app->plugin->raiseEvent('mail:mail_user_filter:on_after_insert',$this); |
| | | return $affected_rows; |
| | | } |
| | | |
| | |
| | | $this->server->fault('permission_denied','You do not have the permissions to access this function.'); |
| | | return false; |
| | | } |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_user_filter.tform.php', $client_id, $primary_id, $params); |
| | | $app->plugin->raiseEvent('mail:mail_user_filter:on_after_update',$this); |
| | | $affected_rows = $this->updateQuery('../mail/form/mail_user_filter.tform.php', $client_id, $primary_id, $params,'mail:mail_user_filter:on_after_update'); |
| | | // $app->plugin->raiseEvent('mail:mail_user_filter:on_after_update',$this); |
| | | return $affected_rows; |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | |
| | | private function insertQuery($formdef_file, $client_id, $params) |
| | | private function insertQuery($formdef_file, $client_id, $params,$event_identifier = '') |
| | | { |
| | | global $app, $tform, $remoting_lib; |
| | | |
| | |
| | | |
| | | $insert_id = $app->db->insertID(); |
| | | |
| | | |
| | | if($event_identifier != '') $app->plugin->raiseEvent($event_identifier,$this); |
| | | |
| | | //$app->uses('tform'); |
| | | //* Save changes to Datalog |
| | |
| | | } |
| | | |
| | | |
| | | private function updateQuery($formdef_file, $client_id, $primary_id, $params) |
| | | private function updateQuery($formdef_file, $client_id, $primary_id, $params, $event_identifier = '') |
| | | { |
| | | global $app; |
| | | |
| | |
| | | |
| | | $affected_rows = $app->db->affectedRows(); |
| | | |
| | | if($event_identifier != '') $app->plugin->raiseEvent($event_identifier,$this); |
| | | |
| | | //* Save changes to Datalog |
| | | if($app->remoting_lib->formDef["db_history"] == 'yes') { |
| | | $new_rec = $app->remoting_lib->getDataRecord($primary_id); |