Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

oxServerChecker Class Reference

Collaboration diagram for oxServerChecker:

List of all members.

Public Member Functions

 __construct ()
 check (oxApplicationServer $oServer)

Public Attributes

const NODE_VALIDITY_TIME = 43200

Private Member Functions

 _isValid ($oServer)
 _isServerTimeValid ($iServerTimeInPast)
 _getCurrentTime ()

Private Attributes

 $_iCurrentTime = 0

Detailed Description

Checks if server node is valid, information is not outdated.

Definition at line 11 of file oxserverchecker.php.


Constructor & Destructor Documentation

oxServerChecker.__construct (  ) 

Class constructor. Sets current time to $_iCurrentTime parameter.

Definition at line 29 of file oxserverchecker.php.


Member Function Documentation

oxServerChecker._getCurrentTime (  )  [private]

Returns current time - timestamp.

Returns:
int

Definition at line 81 of file oxserverchecker.php.

oxServerChecker._isServerTimeValid ( iServerTimeInPast  )  [private]

Method checks if server time was not rolled back.

Parameters:
int $iServerTimeInPast timestamp of time in past
Returns:
bool

Definition at line 71 of file oxserverchecker.php.

oxServerChecker._isValid ( oServer  )  [private]

Check is server information out dated.

Parameters:
oxApplicationServer $oServer
Returns:
bool

Definition at line 59 of file oxserverchecker.php.

oxServerChecker.check ( oxApplicationServer oServer  ) 

Checks if server node is valid.

Parameters:
oxApplicationServer $oServer
Returns:
bool

Definition at line 41 of file oxserverchecker.php.


Member Data Documentation

oxServerChecker.$_iCurrentTime = 0 [private]

Definition at line 24 of file oxserverchecker.php.

Time in seconds, server node information life time.

Definition at line 17 of file oxserverchecker.php.


The documentation for this class was generated from the following file: