Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

oxFileChecker Class Reference

List of all members.

Public Member Functions

 setBaseDirectory ($sDir)
 getBaseDirectory ()
 setVersion ($sVersion)
 getVersion ()
 setEdition ($sEdition)
 getEdition ()
 setRevision ($sRevision)
 getRevision ()
 setWebServiceUrl ($sUrl)
 getWebServiceUrl ()
 hasError ()
 getErrorMessage ()
 init ()
 checkSystemRequirements ()
 checkFile ($sFile)

Public Attributes

 $_sWebServiceUrl = 'http://oxchkversion.oxid-esales.com/webService.php'

Protected Member Functions

 _isWebServiceOnline ()
 _isShopVersionIsKnown ()
 _getFileVersion ($sMD5, $sFile)

Protected Attributes

 $_blError = false
 $_sErrorMessage = null
 $_oCurlHandler = null
 $_sEdition = ""
 $_sVersion = ""
 $_sRevision = ""
 $_sBaseDirectory = ''
 $_blListAllFiles = false

Detailed Description

Shop file checker Performs version check of shop file

Definition at line 9 of file oxfilechecker.php.


Member Function Documentation

oxFileChecker._getFileVersion ( sMD5,
sFile 
) [protected]

Queries checksum-webservice according to md5, version, revision, edition and filename

Parameters:
string $sMD5 MD5 to check
string $sFile File to check
Returns:
SimpleXMLElement

Definition at line 392 of file oxfilechecker.php.

oxFileChecker._isShopVersionIsKnown (  )  [protected]

asks the webservice, if the shop version is known.

Returns:
boolean

Definition at line 280 of file oxfilechecker.php.

oxFileChecker._isWebServiceOnline (  )  [protected]

in case if a general error is thrown by webservice

Returns:
string error

Definition at line 241 of file oxfilechecker.php.

oxFileChecker.checkFile ( sFile  ) 

This method gets the XML object for each file and checks the return values. The result will be saved in the variable $sResultOutput.

Parameters:
string $sFile File
Returns:
mixed

Definition at line 319 of file oxfilechecker.php.

oxFileChecker.checkSystemRequirements (  ) 

Checks system requirements and builds error messages if there are some

Returns:
boolean

Definition at line 231 of file oxfilechecker.php.

oxFileChecker.getBaseDirectory (  ) 

working directory getter

Returns:
string

Definition at line 93 of file oxfilechecker.php.

oxFileChecker.getEdition (  ) 

Edition getter

Returns:
string

Definition at line 137 of file oxfilechecker.php.

oxFileChecker.getErrorMessage (  ) 

Error status getter

Returns:
string

Definition at line 201 of file oxfilechecker.php.

oxFileChecker.getRevision (  ) 

Revision getter

Returns:
string

Definition at line 159 of file oxfilechecker.php.

oxFileChecker.getVersion (  ) 

Version getter

Returns:
string

Definition at line 115 of file oxfilechecker.php.

oxFileChecker.getWebServiceUrl (  ) 

Web service URL getter

Returns:
string

Definition at line 181 of file oxfilechecker.php.

oxFileChecker.hasError (  ) 

Error status getter

Returns:
string

Definition at line 191 of file oxfilechecker.php.

oxFileChecker.init (  ) 

Initializes object and checks web service availability

Returns:
boolean

Definition at line 211 of file oxfilechecker.php.

oxFileChecker.setBaseDirectory ( sDir  ) 

Setter for working directory

Parameters:
string $sDir Directory

Definition at line 81 of file oxfilechecker.php.

oxFileChecker.setEdition ( sEdition  ) 

Edition setter

Parameters:
string $sEdition Edition

Definition at line 125 of file oxfilechecker.php.

oxFileChecker.setRevision ( sRevision  ) 

Revision setter

Parameters:
string $sRevision Revision

Definition at line 147 of file oxfilechecker.php.

oxFileChecker.setVersion ( sVersion  ) 

Version setter

Parameters:
string $sVersion Version

Definition at line 103 of file oxfilechecker.php.

oxFileChecker.setWebServiceUrl ( sUrl  ) 

Web service URL setter

Parameters:
string $sUrl Web service url.

Definition at line 169 of file oxfilechecker.php.


Member Data Documentation

oxFileChecker.$_blError = false [protected]

Definition at line 17 of file oxfilechecker.php.

oxFileChecker.$_blListAllFiles = false [protected]

Definition at line 74 of file oxfilechecker.php.

oxFileChecker.$_oCurlHandler = null [protected]

Definition at line 38 of file oxfilechecker.php.

oxFileChecker.$_sBaseDirectory = '' [protected]

Definition at line 66 of file oxfilechecker.php.

oxFileChecker.$_sEdition = "" [protected]

Definition at line 45 of file oxfilechecker.php.

oxFileChecker.$_sErrorMessage = null [protected]

Definition at line 24 of file oxfilechecker.php.

oxFileChecker.$_sRevision = "" [protected]

Definition at line 59 of file oxfilechecker.php.

oxFileChecker.$_sVersion = "" [protected]

Definition at line 52 of file oxfilechecker.php.

oxFileChecker.$_sWebServiceUrl = 'http://oxchkversion.oxid-esales.com/webService.php'

Definition at line 31 of file oxfilechecker.php.


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