API Documentation

TimeSync/Protocol.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_TimeSync
version
$Id: Protocol.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_TimeSync_Protocol

Description

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.

Zend_TimeSync_Protocol

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_TimeSync
Properties
$_socket
$_exceptions
$_timeserver
$_info
Methods
_prepare
_read
_write
_extract
_connect
_disconnect
getInfo
getDate

Description

Abstract class definition for all timeserver protocols

Properties

$_exceptions

array $_exceptions = ''

Exceptions that might have occured

Details

$_exceptions
array
visibility
protected
default
final
false
static
false

$_info

array $_info = 'array'

Holds information passed/returned from timeserver

Details

$_info
array
visibility
protected
default
array
final
false
static
false

$_socket

array $_socket = ''

Holds the current socket connection

Details

$_socket
array
visibility
protected
default
final
false
static
false

$_timeserver

string $_timeserver = ''

Hostname for timeserver

Details

$_timeserver
string
visibility
protected
default
final
false
static
false

Methods

_connect

_connect( ) : void

Connect to the specified timeserver.

Details
visibility
protected
final
false
static
false
throws
When the connection failed

_disconnect

_disconnect( ) : void

Disconnects from the peer, closes the socket.

Details
visibility
protected
final
false
static
false

_extract

_extract( string|array $data ) : integer

Abstract method that extracts the binary data returned from the timeserver

Arguments
$data
stringarray
Data returned from the timeserver
Output
integer
Details
visibility
protected
final
false
static
false

_prepare

_prepare( ) : mixed

Abstract method that prepares the data to send to the timeserver

Output
mixed
Details
visibility
protected
final
false
static
false

_read

_read( ) : mixed

Abstract method that reads the data returned from the timeserver

Output
mixed
Details
visibility
protected
final
false
static
false

_write

_write( string $data ) : void

Abstract method that writes data to to the timeserver

Arguments
$data
string
Data to write
Details
visibility
protected
final
false
static
false

getDate

getDate( string|Zend_Locale $locale = null ) : Zend_Date

Query this timeserver without using the fallback mechanism

Arguments
$locale
stringZend_Locale
(Optional) Locale
Output
Zend_Date
Details
visibility
public
final
false
static
false

getInfo

getInfo( ) : array

Return information sent/returned from the timeserver

Output
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.