Methods
Constructor of Contenido_UpdateNotifier
__construct($aCfg, $oUser, $oPerm, $oSession, $sBackendLanguage) : void
Parameters
$aCfg
$oUser
$oPerm
$oSession
$sBackendLanguage
Displays the rendered output
displayOutput() : string
Checks the patch level of system and vendor version
checkPatchLevel() : string
Checks if the xml files must be loaded from the vendor host or local cache
checkUpdateNecessity() : void
Detects and converts the minor release of the system version
detectMinorRelease() : void
Generates the download URL
getDownloadURL() : string
Gets the xml file hash from the property table
getHashProperty() : string
Connects with vendor host and gets the xml files
getVendorHostFiles() : array
Handles the update of files coming per vendor host
handleVendorUpdate($aXMLContent) : void
Reads the xml files from vendor host or cache and checks for file manipulations
readVendorContent() : void
Generates the output for the backend
renderOutput(\$sMessage $sMessage) : string
Parameters
$sMessage
\$sMessage
string
Returns
string
Sets the cache path
setCachePath() : void
Updates the files in cache
updateCacheFiles(\$aRSSContent $aRSSContent) : void
Parameters
$aRSSContent
\$aRSSContent
array
Updates the xml file hash in the property table
updateHashProperty(\$aRSSContent $aXMLContent) : void
Parameters
$aXMLContent
\$aRSSContent
array
Updates the system property for activation/deactivation requests
updateSystemProperty(\$sAction $sAction) : void
Properties
Contenido configuration array
$aCfg : array
Property configuration array
$aPropConf : array
System property configuration array for update notification
$aSysPropConf : array
System property configuration array for update period
$aSysPropConfPeriod : array
Check for system setting
$bEnableCheck : boolean
Display update notification based on user rights (sysadmin only)
$bEnableView : boolean
If true contenido displays a special error message due to missing write permissions.
$bNoWritePermissions : boolean
Update necessity
$bUpdateNecessity : boolean
Cache duration in minutes
$iCacheDuration : integer
Timeout for the fsockopen connection
$iConnectTimeout : integer
Properties object
$oProperties : object
Session object
$oSession : object
SimpleXML object
$oXML : object
Current backend language
$sBackendLanguage : string
Contains the cache path.
$sCacheDirectory : string
Minor release for the simplexml xpath() method
$sMinorRelease : string
Timestamp cache file
$sTimestampCacheFile : string
Host for vendor XML
$sVendorHost : string
Path to files
$sVendorHostPath : string
Download URL
$sVendorURL : string
Current available vendor version
$sVendorVersion : string
Vendor XML file
$sVendorXMLFile : string
Content of the XML file
$sXMLContent : string