v1_arrayOfStructs

The Contact Form 7 - Infusionsoft Add-on v1 arrayOfStructs function.

Description

v1_arrayOfStructs( $m ); 

Parameters (1)

0. $m
The m.

Usage

  1. if ( !function_exists( 'v1_arrayOfStructs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/server.php'; 
  3.  
  4. // The m. 
  5. $m = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = v1_arrayOfStructs($m); 
  9.  

Defined (1)

The function is defined in the following location(s).

/src/xmlrpc-3.0/demo/server/server.php  
  1. function v1_arrayOfStructs($m) 
  2. $sno=$m->getParam(0); 
  3. $numcurly=0; 
  4. for($i=0; $i<$sno->arraysize(); $i++) 
  5. $str=$sno->arraymem($i); 
  6. $str->structreset(); 
  7. while(list($key, $val)=$str->structeach()) 
  8. if ($key=="curly") 
  9. $numcurly+=$val->scalarval(); 
  10. return new xmlrpcresp(new xmlrpcval($numcurly, "int"));