@@ -1017,6 +1017,56 @@ public function databasequota_get_by_user($session_id, $client_id)
10171017 return $ app ->quota_lib ->get_databasequota_data ($ client_id , false );
10181018 }
10191019
1020+ // ----------------------------------------------------------------------------------------------------------
1021+
1022+ //* Get record details
1023+ public function sites_webdav_user_get ($ session_id , $ primary_id )
1024+ {
1025+ global $ app ;
1026+
1027+ if (!$ this ->checkPerm ($ session_id , 'sites_webdav_user_get ' )) {
1028+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
1029+ return false ;
1030+ }
1031+ $ app ->uses ('remoting_lib ' );
1032+ $ app ->remoting_lib ->loadFormDef ('../sites/form/webdav_user.tform.php ' );
1033+ return $ app ->remoting_lib ->getDataRecord ($ primary_id );
1034+ }
1035+
1036+ //* Add a record
1037+ public function sites_webdav_user_add ($ session_id , $ client_id , $ params )
1038+ {
1039+ if (!$ this ->checkPerm ($ session_id , 'sites_webdav_user_add ' )) {
1040+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
1041+ return false ;
1042+ }
1043+ return $ this ->insertQuery ('../sites/form/webdav_user.tform.php ' , $ client_id , $ params );
1044+ }
1045+
1046+ //* Update a record
1047+ public function sites_webdav_user_update ($ session_id , $ client_id , $ primary_id , $ params )
1048+ {
1049+ if (!$ this ->checkPerm ($ session_id , 'sites_webdav_user_update ' )) {
1050+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
1051+ return false ;
1052+ }
1053+ $ affected_rows = $ this ->updateQuery ('../sites/form/webdav_user.tform.php ' , $ client_id , $ primary_id , $ params );
1054+ return $ affected_rows ;
1055+ }
1056+
1057+ //* Delete a record
1058+ public function sites_webdav_user_delete ($ session_id , $ primary_id )
1059+ {
1060+ global $ app ;
1061+ if (!$ this ->checkPerm ($ session_id , 'sites_webdav_user_delete ' )) {
1062+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
1063+ return false ;
1064+ }
1065+
1066+ $ affected_rows = $ this ->deleteQuery ('../sites/form/webdav_user.tform.php ' , $ primary_id );
1067+ return $ affected_rows ;
1068+ }
1069+
10201070
10211071}
10221072
0 commit comments