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 386 of file oxfilechecker.php.

oxFileChecker._isShopVersionIsKnown (  )  [protected]

asks the webservice, if the shop version is known.

Returns:
boolean

Definition at line 277 of file oxfilechecker.php.

oxFileChecker._isWebServiceOnline (  )  [protected]

in case if a general error is thrown by webservice

Returns:
string error

Definition at line 239 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:
$sFile 
Returns:
mixed

Definition at line 313 of file oxfilechecker.php.

oxFileChecker.checkSystemRequirements (  ) 

Checks system requirements and builds error messages if there are some

Returns:
boolean

Definition at line 230 of file oxfilechecker.php.

oxFileChecker.getBaseDirectory (  ) 

working directory getter

Returns:
string

Definition at line 92 of file oxfilechecker.php.

oxFileChecker.getEdition (  ) 

Edition getter

Returns:
string

Definition at line 136 of file oxfilechecker.php.

oxFileChecker.getErrorMessage (  ) 

Error status getter

Returns:
string

Definition at line 200 of file oxfilechecker.php.

oxFileChecker.getRevision (  ) 

Revision getter

Returns:
string

Definition at line 158 of file oxfilechecker.php.

oxFileChecker.getVersion (  ) 

Version getter

Returns:
string

Definition at line 114 of file oxfilechecker.php.

oxFileChecker.getWebServiceUrl (  ) 

Web service URL getter

Returns:
string

Definition at line 180 of file oxfilechecker.php.

oxFileChecker.hasError (  ) 

Error status getter

Returns:
string

Definition at line 190 of file oxfilechecker.php.

oxFileChecker.init (  ) 

Initializes object and checks web service availability

Returns:
boolean

Definition at line 210 of file oxfilechecker.php.

oxFileChecker.setBaseDirectory ( sDir  ) 

Setter for working directory

Parameters:
$sDir string

Definition at line 80 of file oxfilechecker.php.

oxFileChecker.setEdition ( sEdition  ) 

Edition setter

Parameters:
$sEdition string

Definition at line 124 of file oxfilechecker.php.

oxFileChecker.setRevision ( sRevision  ) 

Revision setter

Parameters:
$sRevision string

Definition at line 146 of file oxfilechecker.php.

oxFileChecker.setVersion ( sVersion  ) 

Version setter

Parameters:
$sVersion string

Definition at line 102 of file oxfilechecker.php.

oxFileChecker.setWebServiceUrl ( sUrl  ) 

Web service URL setter

Parameters:
$sRevision string

Definition at line 168 of file oxfilechecker.php.


Member Data Documentation

oxFileChecker.$_blError = false [protected]

Definition at line 16 of file oxfilechecker.php.

oxFileChecker.$_blListAllFiles = false [protected]

Definition at line 73 of file oxfilechecker.php.

oxFileChecker.$_oCurlHandler = null [protected]

Definition at line 37 of file oxfilechecker.php.

oxFileChecker.$_sBaseDirectory = '' [protected]

Definition at line 65 of file oxfilechecker.php.

oxFileChecker.$_sEdition = "" [protected]

Definition at line 44 of file oxfilechecker.php.

oxFileChecker.$_sErrorMessage = null [protected]

Definition at line 23 of file oxfilechecker.php.

oxFileChecker.$_sRevision = "" [protected]

Definition at line 58 of file oxfilechecker.php.

oxFileChecker.$_sVersion = "" [protected]

Definition at line 51 of file oxfilechecker.php.

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

Definition at line 30 of file oxfilechecker.php.


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