From: <lin...@us...> - 2010-01-25 10:41:32
|
Revision: 3324 http://web-erp.svn.sourceforge.net/web-erp/?rev=3324&view=rev Author: lindsayh Date: 2010-01-25 10:41:16 +0000 (Mon, 25 Jan 2010) Log Message: ----------- Mangled the api_xml-rpc.php file to make the username and password parameters unnecessary if the login method has been used. Works quite well with my limited testing of both styles (i.e. with and without login()). Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-24 21:06:26 UTC (rev 3323) +++ trunk/api/api_xml-rpc.php 2010-01-25 10:41:16 UTC (rev 3324) @@ -31,29 +31,37 @@ $Login_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_Login($xmlrpcmsg) { - ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), + ob_start('ob_file_callback'); + $rtn = new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); + ob_end_flush(); + return $rtn; } + + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to logout from the API methods.'); - $ReturnValue[0] = _('This function returns an integer. '). - _('Zero means the function was successful. '). - _('Otherwise an error code is returned. '); - + $ReturnValue[0] = _('This function returns an integer. ') + ._('Zero means the function was successful. ') + ._('Otherwise an error code is returned. '); $Logout_sig = array(array($xmlrpcStruct)); - $Logout_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); + $Logout_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_Logout($xmlrpcmsg) { + function xmlrpc_Logout($xmlrpcmsg){ + ob_start('ob_file_callback'); + $rtn = new xmlrpcresp( php_xmlrpc_encode(LogoutAPI()) ); ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(LogoutAPI())); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to insert a new customer into the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -65,26 +73,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString), array($xmlrpcStruct, $xmlrpcStruct)); - $InsertCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertCustomer_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertCustomer($xmlrpcmsg) { + function xmlrpc_InsertCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - if ($xmlrpcmsg->getNumParams() == 3) { - return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); - } else { - return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0))))); - } + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to insert a new customer branch into the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -95,22 +109,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertBranch_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertBranch($xmlrpcmsg) { + function xmlrpc_InsertBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to modify a customer which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -122,23 +146,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); +/*E*/ $ModifyCustomer_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - $ModifyCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - - function xmlrpc_ModifyCustomer($xmlrpcmsg) { + function xmlrpc_ModifyCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to modify a customer branch which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -150,22 +183,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $ModifyBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $ModifyBranch_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_ModifyBranch($xmlrpcmsg) { + function xmlrpc_ModifyBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer branch from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); $Parameter[0]['description'] = _('This is a string value. It must be a valid debtor number that is already in the webERP database.'); @@ -175,24 +218,34 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this branch. '). - _('The key will be identical with field name from the custbranch table. All fields will be in the set regardless of whether the value was set.').'<p>'. - _('Otherwise an array of error codes is returned. '); + $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this branch. ') + ._('The key will be identical with field name from the custbranch table. All fields will be in the set regardless of whether the value was set.').'<p>' + ._('Otherwise an array of error codes is returned. '); +/*E*/ $GetCustomerBranch_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCustomerBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - $GetCustomerBranch_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomerBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - - function xmlrpc_GetCustomerBranch($xmlrpcmsg) { + function xmlrpc_GetCustomerBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); $Parameter[0]['description'] = _('This is a string value. It must be a valid debtor number that is already in the webERP database.'); @@ -200,22 +253,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this customer. '). - _('The key will be identical with field name from the debtorsmaster table. All fields will be in the set regardless of whether the value was set.').'<p>'. - _('Otherwise an array of error codes is returned. '); + $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this customer. ') + ._('The key will be identical with field name from the debtorsmaster table. All fields will be in the set regardless of whether the value was set.').'<p>' + ._('Otherwise an array of error codes is returned. '); - $GetCustomer_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCustomer_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCustomer($xmlrpcmsg) { + function xmlrpc_GetCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Field Name'); $Parameter[0]['description'] = _('The name of a database field to search on. ') @@ -227,45 +290,64 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of customer IDs, which may be integers or strings. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of customer IDs, which may be integers or strings. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $SearchCustomers_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchCustomers_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $SearchCustomers_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SearchCustomers_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_SearchCustomers($xmlrpcmsg) { + function xmlrpc_SearchCustomers($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of currency abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[1]['name'] = _('User password'); $Parameter[1]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of currency abbreviations. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of currency abbreviations. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $GetCurrencyList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetCurrencyList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCurrencyList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetCurrencyList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCurrencyList($xmlrpcmsg) { + function xmlrpc_GetCurrencyList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a currency abbreviation and returns details of that currency.'); $Parameter[0]['name'] = _('Currency abbreviation'); $Parameter[0]['description'] = _('A currency abbreviation as returned by the GetCurrencyList function.'); @@ -275,40 +357,58 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of currency details.'); - $GetCurrencyDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCurrencyDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCurrencyDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCurrencyDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCurrencyDetails($xmlrpcmsg) { + function xmlrpc_GetCurrencyDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of sales type abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[1]['name'] = _('User password'); $Parameter[1]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of sales type abbreviations. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of sales type abbreviations. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $GetSalesTypeList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetSalesTypeList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetSalesTypeList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetSalesTypeList($xmlrpcmsg) { + function xmlrpc_GetSalesTypeList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a sales type abbreviation and returns details of that sales type.'); $Parameter[0]['name'] = _('Sales type abbreviation'); $Parameter[0]['description'] = _('A sales type abbreviation as returned by the GetSalesTypeList function.'); @@ -318,19 +418,28 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of sales type details.'); - $GetSalesTypeDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetSalesTypeDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetSalesTypeDetails($xmlrpcmsg) { + function xmlrpc_GetSalesTypeDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function is used to insert sales type details into the webERP database.'); $Parameter[0]['name'] = _('Sales Type Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -341,23 +450,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertSalesType_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesType_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesType_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesType_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertSalesType($xmlrpcmsg) { + function xmlrpc_InsertSalesType($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of hold reason codes.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -365,18 +483,27 @@ $Parameter[1]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of hold reason codes.'); - $GetHoldReasonList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetHoldReasonList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetHoldReasonList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetHoldReasonList($xmlrpcmsg) { + function xmlrpc_GetHoldReasonList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a hold reason code and returns details of that hold reason.'); $Parameter[0]['name'] = _('Hold reason code'); $Parameter[0]['description'] = _('A hold reason abbreviation as returned by the GetHoldReasonList function.'); @@ -386,19 +513,28 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of hold reason details.'); - $GetHoldReasonDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetHoldReasonDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetHoldReasonDetails($xmlrpcmsg) { + function xmlrpc_GetHoldReasonDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of payment terms abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -406,18 +542,27 @@ $Parameter[1]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of payment terms abbreviations.'); - $GetPaymentTermsList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetPaymentTermsList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetPaymentTermsList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetPaymentTermsList($xmlrpcmsg) { + function xmlrpc_GetPaymentTermsList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a payment terms abbreviation and returns details of that payment terms type.'); $Parameter[0]['name'] = _('Hold reason code'); $Parameter[0]['description'] = _('A payment terms abbreviation as returned by the GetPaymentTermsList function.'); @@ -427,75 +572,115 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of payment terms details.'); - $GetPaymentTermsDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetPaymentTermsDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg) { + function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock Item Details'); $Parameter[0]['description'] = _('Key/value pairs of data to insert.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_InsertStockItem($xmlrpcmsg) { +/*E*/ $InsertStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_InsertStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock Item Details'); $Parameter[0]['description'] = _('Key/value pairs of data to modify.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ModifyStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_ModifyStockItem($xmlrpcmsg) { +/*E*/ $ModifyStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_ModifyStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetStockItem_sig = array(array($xmlrpcStruct, $xmlrpcString)); - $GetStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockItem($xmlrpcmsg) { +/*E*/ $GetStockItem_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam(0)->scalarval(), - '', ''))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Field Name'); $Parameter[0]['description'] = _('The field name to search on.'); $Parameter[1]['name'] = _('Match Criteria'); @@ -504,21 +689,32 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $SearchStockItems_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchStockItems_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_SearchStockItems($xmlrpcmsg) { +/*E*/ $SearchStockItems_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SearchStockItems_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_SearchStockItems($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function returns the stock balance for the given stockid.'; + unset($ReturnValue); + + $Description = 'This function returns the stock balance for the given stockid.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('User name'); @@ -526,25 +722,30 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock quantities by location for this stock item. '); - $GetStockBalance_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString),array($xmlrpcStruct, $xmlrpcString)); - $GetStockBalance_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockBalance($xmlrpcmsg) { +/*E*/ $GetStockBalance_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockBalance_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockBalance($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - if ($xmlrpcmsg->getNumParams() == 3) - { - return new xmlrpcresp(php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); - } else { - return new xmlrpcresp(php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam(0)->scalarval()), '', '')); - } + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function returns the reorder levels by location.'; + unset($ReturnValue); + + $Description = 'This function returns the reorder levels by location.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('User name'); @@ -552,20 +753,30 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock reorder levels by location for this stock item.'); - $GetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockReorderLevel_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockReorderLevel($xmlrpcmsg) { +/*E*/ $GetStockReorderLevel_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockReorderLevel_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockReorderLevel($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function sets the reorder level for the given stockid in the given location.'; + unset($ReturnValue); + + $Description = 'This function sets the reorder level for the given stockid in the given location.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('Location Code'); @@ -577,58 +788,91 @@ $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns zero if the transaction was successful or an array of error codes if not. '); - $SetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockReorderLevel_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_SetStockReorderLevel($xmlrpcmsg) { +/*E*/ $SetStockReorderLevel_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SetStockReorderLevel_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_SetStockReorderLevel($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items ordered but not yet shipped.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetAllocatedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetAllocatedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetAllocatedStock($xmlrpcmsg) { +/*E*/ $GetAllocatedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetAllocatedStock_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetAllocatedStock($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items in the database on order, but not yet received.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetOrderedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetOrderedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetOrderedStock($xmlrpcmsg) { + +/*E*/ $GetOrderedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetOrderedStock_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetOrderedStock($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); @@ -642,22 +886,34 @@ $Parameter[5]['name'] = _('User password'); $Parameter[5]['description'] = _('The weberp password associated with this user name. '); - $SetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $SetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SetStockPrice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_SetStockPrice($xmlrpcmsg) { + function xmlrpc_SetStockPrice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 6) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 5 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), + $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval(), - $xmlrpcmsg->getParam(5)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); @@ -669,21 +925,32 @@ $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); - $GetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockPrice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetStockPrice($xmlrpcmsg) { + function xmlrpc_GetStockPrice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Invoice Details'); $Parameter[0]['description'] = _('An array of index/value items describing the invoice.'); $Parameter[1]['name'] = _('User name'); @@ -691,19 +958,28 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertSalesInvoice_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesInvoice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesInvoice_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesInvoice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertSalesInvoice($xmlrpcmsg) { + function xmlrpc_InsertSalesInvoice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Credit Details'); $Parameter[0]['description'] = _('An array of index/value items describing the credit. All values must be negative.'); $Parameter[1]['name'] = _('User name'); @@ -711,19 +987,28 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertSalesCredit_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesCredit_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesCredit_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesCredit_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - functi... [truncated message content] |