43 require_once 
'XML/RPC2/Exception.php';
 
   44 require_once 
'XML/RPC2/Backend/Php/Value.php';
 
   85             case 'dateTime.iso8601':
 
   87                 $this->_scalarType = $value;
 
  135         if (is_null($explicitType)) {
 
  136             switch (gettype($nativeValue)) {
 
  141                     $explicitType = gettype($nativeValue);
 
  144                     throw new XML_RPC2_InvalidTypeEncodeException(sprintf(
'Impossible to encode scalar value \'%s\' from type \'%s\'. Native type is not a scalar XML_RPC type (boolean, integer, double, string)',
 
  145                         (
string) $nativeValue,
 
  146                         gettype($nativeValue)));
 
  149         $explicitType = ucfirst(strtolower($explicitType));
 
  150         require_once(sprintf(
'XML/RPC2/Backend/Php/Value/%s.php', $explicitType));
 
  151         $explicitType = sprintf(
'XML_RPC2_Backend_Php_Value_%s', $explicitType);
 
  152         return new $explicitType($nativeValue);