protected function proxy($method, $args)
    {

        // logic before executing the method
        //
        $this->beforeProxy($method, $args);
        
        // executing the domain method
        $result = call_user_func_array(array($this, $method), $args);


        // logic after executin the method
        //
        $this->afterProxy($method, $args, $result);

        // return the result of domain method
        return $result;
    }
protected function proxy($method, $args)
    {

        // logic before executing the method
        //
        $this->beforeProxy($method, $args);
        
        // executing the domain method
        $result = call_user_func_array(array($this, $method), $args);


        // logic after executin the method
        //
        $this->afterProxy($method, $args, $result);

        // return the result of domain method
        return $result;
    }
protected function proxy ( $ method , $ args ) { // logic before executing the method // $ this -> beforeProxy ( $ method , $ args ) ; // executing the domain method $ result = call_user_func_array ( array ( $ this , $ method ) , $ args ) ; // logic after executin the method // $ this -> afterProxy ( $ method , $ args , $ result ) ; // return the result of domain method return $ result ; }
Proxy function through which domain methods will be called
This method should be overridden in extending classes

@param $method 	string 		- domain method name
@param $arg 		array 		- array of arguments for domain method

@return mixed
Proxy function through which domain methods will be called This method should be overridden in extending classes