Methods

Constructor of Contenido_UpdateNotifier

__construct($aCfg, $oUser, $oPerm, $oSession, $sBackendLanguage) : void

Parameters

$aCfg

$oUser

$oPerm

$oSession

$sBackendLanguage

Displays the rendered output

displayOutput() : string

Returns

string

Checks the patch level of system and vendor version

checkPatchLevel() : string

Returns

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

Returns

string

Gets the xml file hash from the property table

getHashProperty() : string

Returns

string

Connects with vendor host and gets the xml files

getVendorHostFiles() : array

Returns

array

Handles the update of files coming per vendor host

handleVendorUpdate($aXMLContent) : void

Parameters

$aXMLContent

Reads the xml files from vendor host or cache and checks for file manipulations

readVendorContent() : void

Generates the output for the backend

renderOutput($sMessage) : string

Parameters

$sMessage

string

Returns

string

Generates the output for the rss informations

renderRss($oTpl) : \CONTENIDO

Parameters

$oTpl

Returns

\CONTENIDOtemplate object

Sets the cache path

setCachePath() : void

Sets the actual RSS file for the reader

setRSSFile() : void

Updates the files in cache

updateCacheFiles($aRSSContent) : void

Parameters

$aRSSContent

array

Updates the xml file hash in the property table

updateHashProperty($aXMLContent) : void

Parameters

$aXMLContent

Updates the system property for activation/deactivation requests

updateSystemProperty($sAction) : void

Parameters

$sAction

string

fetches given url for vendorfiles

fetchUrl(string $sUrl) 
todo add a retry counter and a deathpoint with warning in errorlog

Parameters

$sUrl

string

 Properties

 

$aCfg : array
 

$aPropConf : array
 

$aSysPropConf : array
 

$aSysPropConfPeriod : array
 

$aSysPropConfRss : array
 

$bEnableCheck : boolean
 

$bEnableCheckRss : boolean
 

$bEnableView : boolean
 

$bNoWritePermissions : boolean
 

$bUpdateNecessity : boolean
 

$iCacheDuration : integer
 

$iConnectTimeout : integer
access protected
 

$oProperties : object
 

$oSession : object
 

$oXML : object
 

$sBackendLanguage : string
 

$sCacheDirectory : string
 

$sMinorRelease : string
 

$sRSSContent : string
 

$sRSSFile : string
 

$sTimestampCacheFile : string
 

$sVendorHost : string
 

$sVendorHostPath : string
 

$sVendorRssDeFile : string
 

$sVendorRssEnFile : string
 

$sVendorURL : string
 

$sVendorVersion : string
 

$sVendorXMLFile : string
 

$sXMLContent : string
 

$bVendorHostReachable : boolean