oxsystemeventhandler.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class OxSystemEventHandler
00007 {
00011     private $_oOMVN = null;
00012 
00013 
00019     public function setOMVN($oOMVN)
00020     {
00021         $this->_oOMVN = $oOMVN;
00022     }
00023 
00029     public function getOMVN()
00030     {
00031         if (!$this->_oOMVN) {
00032             $oOMVN = oxNew("oxOnlineModuleVersionNotifier");
00033             $this->setOMVN( $oOMVN );
00034         }
00035 
00036         return $this->_oOMVN;
00037     }
00038 
00044     public function onAdminLogin( $sActiveShop )
00045     {
00046 
00047         //Checks if newer versions of modules are available.
00048         //Will be used by the upcoming online one click installer.
00049         //Is still under development - still changes at the remote server are necessary - therefore ignoring the results for now
00050         try {
00051             $this->getOMVN()->versionNotify();
00052         } catch (Exception $o) { }
00053     }
00054 }