Class cUpdateNotifier
This class contains function for the update notifier.
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/class.update.notifier.php
public
|
#
__construct( array $aCfg,
Constructor of Contenido_UpdateNotifier |
protected
|
|
protected
|
#
updateSystemProperty( string $sAction )
Updates the system property for activation/deactivation requests |
protected
|
|
protected
|
#
checkUpdateNecessity( )
Checks if the xml files must be loaded from the vendor host or local cache |
protected
|
|
protected
|
#
readVendorContent( )
Reads the xml files from vendor host or cache and checks for file manipulations |
protected
|
|
protected
array
|
|
protected
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
private
boolean
|
|
public
string
|
protected
string
|
$sMinorRelease
Minor release for the simplexml xpath() method |
#
""
|
protected
string
|
$sVendorHost
Host for vendor XML |
#
"www.contenido.org"
|
protected
string
|
$sVendorHostPath
Path to files |
#
"con_version_check_feeds/"
|
protected
string
|
$sVendorXMLFile
Vendor XML file |
#
"vendor.xml"
|
protected
string
|
$sVendorRssDeFile
German Vendor RSS file |
#
"rss_de.xml"
|
protected
string
|
$sVendorRssEnFile
English Vendor RSS file |
#
"rss_en.xml"
|
protected
string
|
$sRSSFile
Language specific RSS file |
#
""
|
protected
string
|
$sTimestampCacheFile
Timestamp cache file |
#
"update.txt"
|
protected
string
|
$sXMLContent
Content of the XML file |
#
""
|
protected
string
|
$sRSSContent
Content of the language specific RSS file |
#
""
|
protected
string
|
$sVendorVersion
Current available vendor version |
#
""
|
protected
string
|
$sVendorURL
Download URL |
#
"http://www.contenido.org/de/redir"
|
protected
string
|
$sBackendLanguage
Current backend language |
#
""
|
protected
string
|
$sCacheDirectory
Contains the cache path. |
#
""
|
protected
object
|
$oXML
SimpleXML object |
#
NULL
|
protected
object
|
$oProperties
Properties object |
#
NULL
|
protected
object
|
$oSession
Session object |
#
NULL
|
protected
integer
|
$iConnectTimeout
Timeout for the fsockopen connection |
#
3
|
protected
integer
|
$iCacheDuration
Cache duration in minutes |
#
60
|
protected
boolean
|
$bEnableCheck
Check for system setting |
#
false
|
protected
boolean
|
$bEnableCheckRss
Check for system setting Rss |
#
false
|
protected
boolean
|
$bNoWritePermissions
If true CONTENIDO displays a special error message due to missing write permissions. |
#
false
|
protected
boolean
|
$bEnableView
Display update notification based on user rights (sysadmin only) |
#
false
|
protected
boolean
|
$bUpdateNecessity
Update necessity |
#
false
|
private
boolean
|
$bVendorHostReachable
Vendor host reachability. |
#
true
|
protected
array
|
$aPropConf
Property configuration array |
#
array(
"itemType" => "update",
"itemID" => 1,
"type" => "file_check",
"name" => "xml"
)
|
protected
array
|
$aSysPropConf
System property configuration array for update notification |
#
array(
"type" => "update",
"name" => "check"
)
|
protected
array
|
$aSysPropConfRss
System property configuration array for rss notification |
#
array(
"type" => "update",
"name" => "news_feed"
)
|
protected
array
|
$aSysPropConfPeriod
System property configuration array for update period |
#
array(
"type" => "update",
"name" => "check_period"
)
|
protected
array
|
$aCfg
CONTENIDO configuration array |
#
array()
|