inner_findstate

Inner code of the state-number server.

Description

(string) inner_findstate( (integer) $stateno ); 

Used to test auto-registration of PHP funcions as xmlrpc methods.

Returns (string)

the name of the state (or error descrption)

Parameters (1)

0. $stateno (integer)
The state number

Usage

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

Defined (1)

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

/src/xmlrpc-3.0/demo/server/server.php  
  1. function inner_findstate($stateno) 
  2. global $stateNames; 
  3. if (isset($stateNames[$stateno-1])) 
  4. return $stateNames[$stateno-1]; 
  5. else 
  6. // not, there so complain 
  7. return "I don't have a state for the index '" . $stateno . "'";