Methods
AutoUpdaterSettings constructor.
__construct(\AutoUpdaterCurlClient $curl, \CI_DB_query_builder $db)
Returns the directory path for the backups to be created.
backupsDirectory() : string
Creates a test file for the permission check.
createTestFile(string $path, integer $chmod)
Return the data processing accepting flag.
dataProcessingAccepted() : boolean
Response
boolean
True, if an admin accepted the data processing, otherwise false.
Determines the needed file permissions for writing operations.
determineCorrectFilePermission() : integer
Determines the url of the feedback server.
determineFeedbackServerUrl() : integer
Determines the url of the update server.
determineUpdateServerUrl() : integer
Returns the url of the update server.
feedbackServerUrl() : string
Returns a configuration value for a given configuration key.
getGmConf(string $key) : mixed
Checks the accessibility of a file by using curl.
isAccessible(string $url) : boolean
Arguments
$url
string
URL to the file.
Response
boolean
True, if the file is accessible by curl, otherwise false.
Returns the correct chmod value for normal directory permission.
normalDirectoryPermissionValue() : integer
Returns the correct chmod value for normal file permission.
normalFilePermissionValue() : integer
Returns the base directory path of the shop.
shopBaseDirectory() : string
Returns the directory path for the updates to be downloaded before moved into the shop.
updatesDirectory() : string
Returns the url of the update server.
updateServerUrl() : string
Returns the correct chmod value for writing permission.
writingPermissionValue() : integer
Properties
curl
curl : \AutoUpdaterCurlClient
db
db : \CI_DB_query_builder
Type(s)
\CI_DB_query_builder
dataProcessingAccepted
dataProcessingAccepted : boolean
shopBaseDirectory
shopBaseDirectory : string
backupsDirectory
backupsDirectory : string
updatesDirectory
updatesDirectory : string
updateServerUrl
updateServerUrl : string
feedbackServerUrl
feedbackServerUrl : string
writingPermissionValue
writingPermissionValue : integer