Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cRequestValidator
  • cSecurity
  • cUpdateNotifier
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cUpdateNotifier

This class contains function for the update notifier.

Package: Core\Security
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
Methods summary
public
# __construct( array $aCfg, cApiUser $oUser, cPermission $oPerm, cSession $oSession, string $sBackendLanguage )

Constructor of Contenido_UpdateNotifier

Constructor of Contenido_UpdateNotifier

Parameters

$aCfg
$oUser
$oPerm
$oSession
$sBackendLanguage
protected
# setRSSFile( )

Sets the actual RSS file for the reader

Sets the actual RSS file for the reader

protected
# updateSystemProperty( string $sAction )

Updates the system property for activation/deactivation requests

Updates the system property for activation/deactivation requests

Parameters

$sAction
protected
# setCachePath( )

Sets the cache path

Sets the cache path

protected
# checkUpdateNecessity( )

Checks if the xml files must be loaded from the vendor host or local cache

Checks if the xml files must be loaded from the vendor host or local cache

protected
# detectMinorRelease( )

Detects and converts the minor release of the system version

Detects and converts the minor release of the system version

protected
# readVendorContent( )

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

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

protected
# handleVendorUpdate( array $aXMLContent )

Handles the update of files coming per vendor host

Handles the update of files coming per vendor host

Parameters

$aXMLContent
protected array
# getVendorHostFiles( )

Connects with vendor host and gets the xml files

Connects with vendor host and gets the xml files

Returns

array
protected
# updateCacheFiles( array $aRSSContent )

Updates the files in cache

Updates the files in cache

Parameters

$aRSSContent
protected string
# getHashProperty( )

Gets the xml file hash from the property table

Gets the xml file hash from the property table

Returns

string
protected
# updateHashProperty( array $aXMLContent )

Updates the xml file hash in the property table

Updates the xml file hash in the property table

Parameters

$aXMLContent
$aRSSContent
protected string
# checkPatchLevel( )

Checks the patch level of system and vendor version

Checks the patch level of system and vendor version

Returns

string
protected string
# getDownloadURL( )

Generates the download URL

Generates the download URL

Returns

string
protected string
# renderOutput( string $sMessage )

Generates the output for the backend

Generates the output for the backend

Parameters

$sMessage

Returns

string
protected cTemplate
# renderRss( cTemplate $oTpl )

Generates the output for the rss informations

Generates the output for the rss informations

Parameters

$oTpl

Returns

cTemplate
CONTENIDO template object
private boolean
# fetchUrl( string $sUrl )

fetches given url for vendorfiles

fetches given url for vendorfiles

Parameters

$sUrl

Returns

boolean
Ambigous string>

Todo

add a retry counter and a deathpoint with warning in errorlog
public string
# displayOutput( )

Displays the rendered output

Displays the rendered output

Returns

string
Properties summary
protected string $sMinorRelease

Minor release for the simplexml xpath() method

Minor release for the simplexml xpath() method

# ""
protected string $sVendorHost

Host for vendor XML

Host for vendor XML

# "www.contenido.org"
protected string $sVendorHostPath

Path to files

Path to files

# "con_version_check_feeds/"
protected string $sVendorXMLFile

Vendor XML file

Vendor XML file

# "vendor.xml"
protected string $sVendorRssDeFile

German Vendor RSS file

German Vendor RSS file

# "rss_de.xml"
protected string $sVendorRssEnFile

English Vendor RSS file

English Vendor RSS file

# "rss_en.xml"
protected string $sRSSFile

Language specific RSS file

Language specific RSS file

# ""
protected string $sTimestampCacheFile

Timestamp cache file

Timestamp cache file

# "update.txt"
protected string $sXMLContent

Content of the XML file

Content of the XML file

# ""
protected string $sRSSContent

Content of the language specific RSS file

Content of the language specific RSS file

# ""
protected string $sVendorVersion

Current available vendor version

Current available vendor version

# ""
protected string $sVendorURL

Download URL

Download URL

# "http://www.contenido.org/de/redir"
protected string $sBackendLanguage

Current backend language

Current backend language

# ""
protected string $sCacheDirectory

Contains the cache path.

Contains the cache path.

# ""
protected object $oXML

SimpleXML object

SimpleXML object

# NULL
protected object $oProperties

Properties object

Properties object

# NULL
protected object $oSession

Session object

Session object

# NULL
protected integer $iConnectTimeout

Timeout for the fsockopen connection

Timeout for the fsockopen connection

# 3
protected integer $iCacheDuration

Cache duration in minutes

Cache duration in minutes

# 60
protected boolean $bEnableCheck

Check for system setting

Check for system setting

# false
protected boolean $bEnableCheckRss

Check for system setting Rss

Check for system setting Rss

# false
protected boolean $bNoWritePermissions

If true CONTENIDO displays a special error message due to missing write permissions.

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)

Display update notification based on user rights (sysadmin only)

# false
protected boolean $bUpdateNecessity

Update necessity

Update necessity

# false
private boolean $bVendorHostReachable

Vendor host reachability.

Vendor host reachability.

# true
protected array $aPropConf

Property configuration array

Property configuration array

# array( "itemType" => "update", "itemID" => 1, "type" => "file_check", "name" => "xml" )
protected array $aSysPropConf

System property configuration array for update notification

System property configuration array for update notification

# array( "type" => "update", "name" => "check" )
protected array $aSysPropConfRss

System property configuration array for rss notification

System property configuration array for rss notification

# array( "type" => "update", "name" => "news_feed" )
protected array $aSysPropConfPeriod

System property configuration array for update period

System property configuration array for update period

# array( "type" => "update", "name" => "check_period" )
protected array $aCfg

CONTENIDO configuration array

CONTENIDO configuration array

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen