Zend Framework
1.12
|
Public Member Functions | |
__construct ($timeserver, $port) | |
Class constructor, sets the timeserver and port number. | |
![]() | |
getInfo () | |
Return information sent/returned from the timeserver. | |
getDate ($locale=null) | |
Query this timeserver without using the fallback mechanism. | |
Protected Member Functions | |
_prepare () | |
Prepares the data that will be send to the timeserver. | |
_read () | |
Reads the data returned from the timeserver. | |
_write ($data) | |
Writes data to to the timeserver. | |
_extract ($result) | |
Extracts the data returned from the timeserver. | |
![]() | |
_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 | |
$_port = 37 | |
![]() | |
$_socket | |
$_exceptions | |
$_timeserver | |
$_info = array() | |
__construct | ( | $timeserver, | |
$port | |||
) |
Class constructor, sets the timeserver and port number.
string | $timeserver | Timeserver to connect to |
integer | $port | Port of the timeserver when it differs from the default port |
|
protected |
Extracts the data returned from the timeserver.
string | $result | Data to extract |
|
protected |
Prepares the data that will be send to the timeserver.
|
protected |
Reads the data returned from the timeserver.
|
protected |
Writes data to to the timeserver.
string | $data | Data to write to the timeserver |
|
protected |