XmlRpc/Value/DateTime.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_XmlRpc  
Subpackage
Value  
Version
$Id$  

\Zend_XmlRpc_Value_DateTime

Package: Zend_XmlRpc\Value
Represent a native XML-RPC value entity, used as parameters for the methods called by the Zend_XmlRpc_Client object and as the return value for those calls.
This object as a very important static function Zend_XmlRpc_Value::getXmlRpcValue, this function acts likes a factory for the Zend_XmlRpc_Value objects Using this function, users/Zend_XmlRpc_Client object can create the Zend_XmlRpc_Value objects from PHP variables, XML string or by specifing the exact XML-RPC natvie type
Parent(s)
\Zend_XmlRpc_Value_Scalar < \Zend_XmlRpc_Value
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_isoFormatString = 'yyyyMMddTHH:mm:ss'
ISO compatible format string for XML/RPC datetime values
Default value'yyyyMMddTHH:mm:ss'Details
Type
string
>VPropertyprotectedstring $_phpFormatString = 'Ymd\\TH:i:s'
PHP compatible format string for XML/RPC datetime values
Default value'Ymd\\TH:i:s'Details
Type
string

Methods

methodpublic__construct(mixed $value) : void

Set the value of a dateTime.iso8601 native type

The value is in iso8601 format, minus any timezone information or dashes
Parameters
NameTypeDescription
$valuemixed

Integer of the unix timestamp or any string that can be parsed

                to a unix timestamp using the PHP strtotime() function
methodpublicgetValue() : int

Return the value of this object as iso8601 dateTime value

Returns
TypeDescription
intAs a Unix timestamp
Documentation was generated by phpDocumentor 2.2.0 .