Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
31c5f169
Commit
31c5f169
authored
Aug 03, 2010
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the evnt based plugin system when used by the remoting framework.
parent
b3248e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting.inc.php
+9
-7
No files found.
interface/lib/classes/remoting.inc.php
View file @
31c5f169
...
...
@@ -263,8 +263,8 @@ class remoting {
$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
;
}
...
...
@@ -276,8 +276,8 @@ class remoting {
$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
;
}
...
...
@@ -1959,7 +1959,7 @@ class remoting {
private
function
insertQuery
(
$formdef_file
,
$client_id
,
$params
)
private
function
insertQuery
(
$formdef_file
,
$client_id
,
$params
,
$event_identifier
=
''
)
{
global
$app
,
$tform
,
$remoting_lib
;
...
...
@@ -1987,7 +1987,7 @@ class remoting {
$insert_id
=
$app
->
db
->
insertID
();
if
(
$event_identifier
!=
''
)
$app
->
plugin
->
raiseEvent
(
$event_identifier
,
$this
);
//$app->uses('tform');
//* Save changes to Datalog
...
...
@@ -2006,7 +2006,7 @@ class remoting {
}
private
function
updateQuery
(
$formdef_file
,
$client_id
,
$primary_id
,
$params
)
private
function
updateQuery
(
$formdef_file
,
$client_id
,
$primary_id
,
$params
,
$event_identifier
=
''
)
{
global
$app
;
...
...
@@ -2042,6 +2042,8 @@ class remoting {
$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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment