CreditCardDetailsType Class Reference

Inheritance diagram for CreditCardDetailsType:

Inheritance graph
[legend]
Collaboration diagram for CreditCardDetailsType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CreditCardDetailsType ()
 getCreditCardType ()
 setCreditCardType ($CreditCardType, $charset= 'iso-8859-1')
 getCreditCardNumber ()
 setCreditCardNumber ($CreditCardNumber, $charset= 'iso-8859-1')
 getExpMonth ()
 setExpMonth ($ExpMonth, $charset= 'iso-8859-1')
 getExpYear ()
 setExpYear ($ExpYear, $charset= 'iso-8859-1')
 getCardOwner ()
 setCardOwner ($CardOwner, $charset= 'iso-8859-1')
 getCVV2 ()
 setCVV2 ($CVV2, $charset= 'iso-8859-1')
getSoapValue ($name, $ns=null)
 setattr ($attribute, $value)
 getattr ($attribute)
 __set_attribute ($key, $value)

Public Attributes

 $CreditCardType
 $CreditCardNumber
 $ExpMonth
 $ExpYear
 $CardOwner
 $CVV2
 $_elements = array()
 $_attributes = array()
 $_attributeValues = array()
 $_namespace

Detailed Description

Definition at line 19 of file CreditCardDetailsType.php.


Constructor & Destructor Documentation

CreditCardDetailsType::CreditCardDetailsType  ) 
 

Definition at line 33 of file CreditCardDetailsType.php.

00034     {
00035         parent::XSDType();
00036         $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
00037         $this->_elements = array_merge($this->_elements,
00038             array (
00039               'CreditCardType' => 
00040               array (
00041                 'required' => true,
00042                 'type' => 'CreditCardTypeType',
00043                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00044               ),
00045               'CreditCardNumber' => 
00046               array (
00047                 'required' => true,
00048                 'type' => 'string',
00049                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00050               ),
00051               'ExpMonth' => 
00052               array (
00053                 'required' => true,
00054                 'type' => 'int',
00055                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00056               ),
00057               'ExpYear' => 
00058               array (
00059                 'required' => true,
00060                 'type' => 'int',
00061                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00062               ),
00063               'CardOwner' => 
00064               array (
00065                 'required' => true,
00066                 'type' => 'PayerInfoType',
00067                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00068               ),
00069               'CVV2' => 
00070               array (
00071                 'required' => false,
00072                 'type' => 'string',
00073                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00074               ),
00075             ));
00076     }


Member Function Documentation

XSDType::__set_attribute key,
value
[inherited]
 

Callback for SOAP_Base::_decode() to set attributes during response decoding.

Definition at line 150 of file XSDType.php.

References XSDType::setattr().

00151     {
00152         return $this->setattr($key, $value);
00153     }

XSDType::getattr attribute  )  [inherited]
 

Get the value of an attribute on this object.

Definition at line 139 of file XSDType.php.

00140     {
00141         return isset($this->_attributeValues[$attribute]) ?
00142             $this->_attributeValues[$attribute] :
00143             null;
00144     }

CreditCardDetailsType::getCardOwner  ) 
 

Definition at line 114 of file CreditCardDetailsType.php.

00115     {
00116         return $this->CardOwner;
00117     }

CreditCardDetailsType::getCreditCardNumber  ) 
 

Definition at line 87 of file CreditCardDetailsType.php.

00088     {
00089         return $this->CreditCardNumber;
00090     }

CreditCardDetailsType::getCreditCardType  ) 
 

Definition at line 78 of file CreditCardDetailsType.php.

00079     {
00080         return $this->CreditCardType;
00081     }

CreditCardDetailsType::getCVV2  ) 
 

Definition at line 123 of file CreditCardDetailsType.php.

00124     {
00125         return $this->CVV2;
00126     }

CreditCardDetailsType::getExpMonth  ) 
 

Definition at line 96 of file CreditCardDetailsType.php.

00097     {
00098         return $this->ExpMonth;
00099     }

CreditCardDetailsType::getExpYear  ) 
 

Definition at line 105 of file CreditCardDetailsType.php.

00106     {
00107         return $this->ExpYear;
00108     }

& XSDType::getSoapValue name,
ns = null
[inherited]
 

Turn this type into a SOAP_Value object useable with SOAP_Client.

Parameters:
string $name The name to use for the value.
string $ns The namespace of the parent value.
Returns:
SOAP_Value A SOAP_Value object representing this type instance.

Definition at line 69 of file XSDType.php.

References $i, $value, name, and Value.

00070     {
00071         include_once 'Services/PayPal/SOAP/Value.php';
00072 
00073         $elements = array();
00074         foreach ($this->_elements as $ename => $element) {
00075             $value = $this->$ename;
00076 
00077             // Values that are null and not required can be omitted
00078             // from the serialized XML (and thus the SOAP_Value
00079             // object) entirely.
00080             if (is_null($value) && !$element['required']) {
00081                 continue;
00082             }
00083 
00084             // Append namespace prefixes if this element came from a
00085             // namespace different from the base type's namespace.
00086             if (!empty($element['namespace']) && $element['namespace'] != $this->_namespace) {
00087                 $ename = '{' . $element['namespace'] . '}' . $ename;
00088             }
00089 
00090             if (is_a($value, 'XSDType')) {
00091                 $elements[] =& $value->getSoapValue($ename, $this->_namespace);
00092             } elseif(is_array($value)) {
00093                 for($i = 0; $i < count($value); $i++) {
00094                                         if (is_a($value[$i], 'XSDType')) {
00095                                             $elements[] =& $value[$i]->getSoapValue($ename, $this->_namespace);
00096                                         } else {
00097                                             if (is_string($value[$i]) && $element['charset'] == 'iso-8859-1' &&
00098                                                 (utf8_encode(utf8_decode($value[$i])) != $value[$i])) {
00099                                                 $value[$i] = utf8_encode($value[$i]);
00100                                             }
00101                                             $elements[] =& new SOAP_Value($ename, $element['type'], $value[$i]);
00102                                         }
00103                 }
00104             } else {
00105                 if (is_string($value) && $element['charset'] == 'iso-8859-1' &&
00106                     (utf8_encode(utf8_decode($value)) != $value)) {
00107                     $value = utf8_encode($value);
00108                 }
00109                 $elements[] =& new SOAP_Value($ename, $element['type'], $value);
00110             }
00111         }
00112 
00113         if (count($elements) == 1) {
00114             $elements = array_shift($elements);
00115         }
00116 
00117         if (!is_null($ns) && $ns != $this->_namespace) {
00118             $this->_attributeValues['xmlns'] = $this->_namespace;
00119         }
00120 
00121         if (count($this->_attributeValues)) {
00122             return $v =& new SOAP_Value($name, '', $elements, $this->_attributeValues);
00123         } else {
00124             return $v =& new SOAP_Value($name, '', $elements);
00125         }
00126     }

XSDType::setattr attribute,
value
[inherited]
 

Set the value of an attribute on this object.

Definition at line 131 of file XSDType.php.

References $value.

Referenced by XSDType::__set_attribute().

00132     {
00133         $this->_attributeValues[$attribute] = $value;
00134     }

CreditCardDetailsType::setCardOwner CardOwner,
charset = 'iso-8859-1'
 

Definition at line 118 of file CreditCardDetailsType.php.

References $CardOwner.

00119     {
00120         $this->CardOwner = $CardOwner;
00121         $this->_elements['CardOwner']['charset'] = $charset;
00122     }

CreditCardDetailsType::setCreditCardNumber CreditCardNumber,
charset = 'iso-8859-1'
 

Definition at line 91 of file CreditCardDetailsType.php.

References $CreditCardNumber.

00092     {
00093         $this->CreditCardNumber = $CreditCardNumber;
00094         $this->_elements['CreditCardNumber']['charset'] = $charset;
00095     }

CreditCardDetailsType::setCreditCardType CreditCardType,
charset = 'iso-8859-1'
 

Definition at line 82 of file CreditCardDetailsType.php.

References $CreditCardType.

00083     {
00084         $this->CreditCardType = $CreditCardType;
00085         $this->_elements['CreditCardType']['charset'] = $charset;
00086     }

CreditCardDetailsType::setCVV2 CVV2,
charset = 'iso-8859-1'
 

Definition at line 127 of file CreditCardDetailsType.php.

References $CVV2.

00128     {
00129         $this->CVV2 = $CVV2;
00130         $this->_elements['CVV2']['charset'] = $charset;
00131     }

CreditCardDetailsType::setExpMonth ExpMonth,
charset = 'iso-8859-1'
 

Definition at line 100 of file CreditCardDetailsType.php.

References $ExpMonth.

00101     {
00102         $this->ExpMonth = $ExpMonth;
00103         $this->_elements['ExpMonth']['charset'] = $charset;
00104     }

CreditCardDetailsType::setExpYear ExpYear,
charset = 'iso-8859-1'
 

Definition at line 109 of file CreditCardDetailsType.php.

References $ExpYear.

00110     {
00111         $this->ExpYear = $ExpYear;
00112         $this->_elements['ExpYear']['charset'] = $charset;
00113     }


Member Data Documentation

XSDType::$_attributes = array() [inherited]
 

Definition at line 33 of file XSDType.php.

XSDType::$_attributeValues = array() [inherited]
 

Definition at line 42 of file XSDType.php.

XSDType::$_elements = array() [inherited]
 

Definition at line 24 of file XSDType.php.

XSDType::$_namespace [inherited]
 

Definition at line 51 of file XSDType.php.

CreditCardDetailsType::$CardOwner
 

Definition at line 29 of file CreditCardDetailsType.php.

Referenced by setCardOwner().

CreditCardDetailsType::$CreditCardNumber
 

Definition at line 23 of file CreditCardDetailsType.php.

Referenced by setCreditCardNumber().

CreditCardDetailsType::$CreditCardType
 

Definition at line 21 of file CreditCardDetailsType.php.

Referenced by setCreditCardType().

CreditCardDetailsType::$CVV2
 

Definition at line 31 of file CreditCardDetailsType.php.

Referenced by setCVV2().

CreditCardDetailsType::$ExpMonth
 

Definition at line 25 of file CreditCardDetailsType.php.

Referenced by setExpMonth().

CreditCardDetailsType::$ExpYear
 

Definition at line 27 of file CreditCardDetailsType.php.

Referenced by setExpYear().


The documentation for this class was generated from the following file:
Generated on Fri Mar 17 14:51:36 2006 for CRE Loaded 6.2 Pro by  doxygen 1.4.4