CustomSecurityHeaderType Class Reference

Inheritance diagram for CustomSecurityHeaderType:

Inheritance graph
[legend]
Collaboration diagram for CustomSecurityHeaderType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CustomSecurityHeaderType ()
 geteBayAuthToken ()
 seteBayAuthToken ($eBayAuthToken, $charset= 'iso-8859-1')
 getHardExpirationWarning ()
 setHardExpirationWarning ($HardExpirationWarning, $charset= 'iso-8859-1')
 getCredentials ()
 setCredentials ($Credentials, $charset= 'iso-8859-1')
getSoapValue ($name, $ns=null)
 setattr ($attribute, $value)
 getattr ($attribute)
 __set_attribute ($key, $value)

Public Attributes

 $eBayAuthToken
 $HardExpirationWarning
 $Credentials
 $_elements = array()
 $_attributes = array()
 $_attributeValues = array()
 $_namespace

Detailed Description

Definition at line 18 of file CustomSecurityHeaderType.php.


Constructor & Destructor Documentation

CustomSecurityHeaderType::CustomSecurityHeaderType  ) 
 

Definition at line 26 of file CustomSecurityHeaderType.php.

00027     {
00028         parent::XSDType();
00029         $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
00030         $this->_elements = array_merge($this->_elements,
00031             array (
00032               'eBayAuthToken' => 
00033               array (
00034                 'required' => false,
00035                 'type' => 'string',
00036                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00037               ),
00038               'HardExpirationWarning' => 
00039               array (
00040                 'required' => false,
00041                 'type' => 'string',
00042                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00043               ),
00044               'Credentials' => 
00045               array (
00046                 'required' => false,
00047                 'type' => 'UserIdPasswordType',
00048                 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
00049               ),
00050             ));
00051     }


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     }

CustomSecurityHeaderType::getCredentials  ) 
 

Definition at line 71 of file CustomSecurityHeaderType.php.

00072     {
00073         return $this->Credentials;
00074     }

CustomSecurityHeaderType::geteBayAuthToken  ) 
 

Definition at line 53 of file CustomSecurityHeaderType.php.

00054     {
00055         return $this->eBayAuthToken;
00056     }

CustomSecurityHeaderType::getHardExpirationWarning  ) 
 

Definition at line 62 of file CustomSecurityHeaderType.php.

00063     {
00064         return $this->HardExpirationWarning;
00065     }

& 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     }

CustomSecurityHeaderType::setCredentials Credentials,
charset = 'iso-8859-1'
 

Definition at line 75 of file CustomSecurityHeaderType.php.

References $Credentials.

00076     {
00077         $this->Credentials = $Credentials;
00078         $this->_elements['Credentials']['charset'] = $charset;
00079     }

CustomSecurityHeaderType::seteBayAuthToken eBayAuthToken,
charset = 'iso-8859-1'
 

Definition at line 57 of file CustomSecurityHeaderType.php.

References $eBayAuthToken.

00058     {
00059         $this->eBayAuthToken = $eBayAuthToken;
00060         $this->_elements['eBayAuthToken']['charset'] = $charset;
00061     }

CustomSecurityHeaderType::setHardExpirationWarning HardExpirationWarning,
charset = 'iso-8859-1'
 

Definition at line 66 of file CustomSecurityHeaderType.php.

References $HardExpirationWarning.

00067     {
00068         $this->HardExpirationWarning = $HardExpirationWarning;
00069         $this->_elements['HardExpirationWarning']['charset'] = $charset;
00070     }


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.

CustomSecurityHeaderType::$Credentials
 

Definition at line 24 of file CustomSecurityHeaderType.php.

Referenced by setCredentials().

CustomSecurityHeaderType::$eBayAuthToken
 

Definition at line 20 of file CustomSecurityHeaderType.php.

Referenced by seteBayAuthToken().

CustomSecurityHeaderType::$HardExpirationWarning
 

Definition at line 22 of file CustomSecurityHeaderType.php.

Referenced by setHardExpirationWarning().


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