HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   One more remoting question (http://www.howtoforge.com/forums/showthread.php?t=58282)

Croydon 15th August 2012 20:02

One more remoting question
 
If I want to create a remoting function matching an existing interface function, is it correct that I have to insert all the things into the remoting.inc.php that are in the onBeforeUpdate and onBeforeInsert and onAfterXXXX?

So if I add an update to the database insert/update function like I did on svn rev 3358 (automatically add website server ip to remote_ips) in the onBeforeUpdate and onBeforeInsert functions of the interface/web/sites/database_edit.php - do I have to make those changes here too?

PHP Code:

    public function sites_database_add($session_id$client_id$params)
    {
        if(!
$this->checkPerm($session_id'sites_database_add')) {
            
$this->server->fault('permission_denied''You do not have the permissions to access this function.');
            return 
false;
        }
        return 
$this->insertQuery('../sites/form/database.tform.php',$client_id,$params);
    } 



All times are GMT +2. The time now is 16:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.