Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_TimeSync_Protocol Class Reference

Public Member Functions

 getInfo ()
 Return information sent/returned from the timeserver.
 
 getDate ($locale=null)
 Query this timeserver without using the fallback mechanism.
 

Protected Member Functions

 _prepare ()
 Abstract method that prepares the data to send to the timeserver.
 
 _read ()
 Abstract method that reads the data returned from the timeserver.
 
 _write ($data)
 Abstract method that writes data to to the timeserver.
 
 _extract ($data)
 Abstract method that extracts the binary data returned from the timeserver.
 
 _connect ()
 Connect to the specified timeserver.
 
 _disconnect ()
 Disconnects from the peer, closes the socket.
 

Protected Attributes

 $_socket
 
 $_exceptions
 
 $_timeserver
 
 $_info = array()
 

Member Function Documentation

_connect ( )
protected

Connect to the specified timeserver.

Returns
void
Exceptions
Zend_TimeSync_ExceptionWhen the connection failed
_disconnect ( )
protected

Disconnects from the peer, closes the socket.

Returns
void
_extract (   $data)
abstractprotected

Abstract method that extracts the binary data returned from the timeserver.

Parameters
string | array$dataData returned from the timeserver
Returns
integer
_prepare ( )
abstractprotected

Abstract method that prepares the data to send to the timeserver.

Returns
mixed
_read ( )
abstractprotected

Abstract method that reads the data returned from the timeserver.

Returns
mixed
_write (   $data)
abstractprotected

Abstract method that writes data to to the timeserver.

Parameters
string$dataData to write
Returns
void
getDate (   $locale = null)

Query this timeserver without using the fallback mechanism.

Parameters
string | Zend_Locale$locale(Optional) Locale
Returns
Zend_Date
getInfo ( )

Return information sent/returned from the timeserver.

Returns
array

Member Data Documentation

$_exceptions
protected
$_info = array()
protected
$_socket
protected
$_timeserver
protected