TimeSync/Protocol.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_TimeSync
- Version
- $Id: Protocol.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_TimeSync_Protocol
Abstract class definition for all timeserver protocols
- Children
- \Zend_TimeSync_Sntp
- \Zend_TimeSync_Ntp
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_info = array()Holds information passed/returned from timeserver
array()Details- Type
- array
Methods

_connect() : voidConnect to the specified timeserver.
| Exception | Description |
|---|---|
| \Zend_TimeSync_Exception | When the connection failed |

_extract(string | array $data) : integerAbstract method that extracts the binary data returned from the timeserver
| Name | Type | Description |
|---|---|---|
| $data | string | array | Data returned from the timeserver |
| Type | Description |
|---|---|
| integer |

_prepare() : mixedAbstract method that prepares the data to send to the timeserver
| Type | Description |
|---|---|
| mixed |

_read() : mixedAbstract method that reads the data returned from the timeserver
| Type | Description |
|---|---|
| mixed |

_write(string $data) : voidAbstract method that writes data to to the timeserver
| Name | Type | Description |
|---|---|---|
| $data | string | Data to write |

getDate(string | \Zend_Locale $locale = null) : \Zend_DateQuery this timeserver without using the fallback mechanism
| Name | Type | Description |
|---|---|---|
| $locale | string | \Zend_Locale | (Optional) Locale |
| Type | Description |
|---|---|
| \Zend_Date |