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 | "www.contenido.org" |
#
Host for vendor XML |
protected
string
|
$sVendorHostPath | "con_version_check_feeds/" |
#
Path to files |
protected
string
|
$sVendorXMLFile | "vendor.xml" |
#
Vendor XML file |
protected
string
|
$sVendorRssDeFile | "rss_de.xml" |
#
German Vendor RSS file |
protected
string
|
$sVendorRssEnFile | "rss_en.xml" |
#
English Vendor RSS file |
protected
string
|
$sRSSFile | "" |
#
Language specific RSS file |
protected
string
|
$sTimestampCacheFile | "update.txt" |
#
Timestamp cache file |
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 | "http://www.contenido.org/de/redir" |
#
Download URL |
protected
string
|
$sBackendLanguage | "" |
#
Current backend language |
protected
string
|
$sCacheDirectory | "" |
#
Contains the cache path. |
protected
object
|
$oXML | NULL |
#
SimpleXML object |
protected
object
|
$oProperties | NULL |
#
Properties object |
protected
object
|
$oSession | NULL |
#
Session object |
protected
integer
|
$iConnectTimeout | 3 |
#
Timeout for the fsockopen connection |
protected
integer
|
$iCacheDuration | 60 |
#
Cache duration in minutes |
protected
boolean
|
$bEnableCheck | false |
#
Check for system setting |
protected
boolean
|
$bEnableCheckRss | false |
#
Check for system setting Rss |
protected
boolean
|
$bNoWritePermissions | false |
#
If true CONTENIDO displays a special error message due to missing write permissions. |
protected
boolean
|
$bEnableView | false |
#
Display update notification based on user rights (sysadmin only) |
protected
boolean
|
$bUpdateNecessity | false |
#
Update necessity |
private
boolean
|
$bVendorHostReachable | true |
#
Vendor host reachability. |
protected
array
|
$aPropConf | array(
"itemType" => "update",
"itemID" => 1,
"type" => "file_check",
"name" => "xml"
) |
#
Property configuration array |
protected
array
|
$aSysPropConf | array(
"type" => "update",
"name" => "check"
) |
#
System property configuration array for update notification |
protected
array
|
$aSysPropConfRss | array(
"type" => "update",
"name" => "news_feed"
) |
#
System property configuration array for rss notification |
protected
array
|
$aSysPropConfPeriod | array(
"type" => "update",
"name" => "check_period"
) |
#
System property configuration array for update period |
protected
array
|
$aCfg | array() |
#
CONTENIDO configuration array |