oxoutput.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxOutput extends oxSuperCfg
00007 {
00013     protected $_blSearchEngine = false;
00014 
00020     public function __construct()
00021     {
00022         $this->setIsSearchEngine( oxUtils::getInstance()->isSearchEngine() );
00023     }
00024 
00032     public function setIsSearchEngine( $blOn )
00033     {
00034         $this->_blSearchEngine = $blOn;
00035     }
00036 
00046     public function process( $sValue, $sClassName )
00047     {
00048         $myConfig = $this->getConfig();
00049 
00050         //fix for euro currency problem (it's invisible in some older browsers)
00051         if ( !$myConfig->getConfigParam( 'blSkipEuroReplace' ) && !$myConfig->isUtf() ) {
00052             $sValue = str_replace( '�', '&euro;', $sValue );
00053         }
00054 
00055         return $sValue;
00056     }
00057 
00065     final public function addVersionTags( $sOutput )
00066     {
00067         // DISPLAY IT
00068         $sVersion = $this->getConfig()->getVersion();
00069         $sEdition = $this->getConfig()->getFullEdition();
00070         $sCurYear = date("Y");
00071 
00072         // SHOW ONLY MAJOR VERSION NUMBER
00073         $aVersion = explode('.', $sVersion);
00074         $sMajorVersion = reset($aVersion);
00075 
00076         // Replacing only once per page
00077         $sOutput = str_ireplace("</head>", "</head>\n  <!-- OXID eShop {$sEdition}, Version {$sMajorVersion}, Shopping Cart System (c) OXID eSales AG 2003 - {$sCurYear} - http://www.oxid-esales.com -->", ltrim($sOutput));
00078 
00079         return $sOutput;
00080     }
00081 
00091     public function processViewArray($aViewData, $sClassName)
00092     {
00093         return $aViewData;
00094     }
00095 
00103     public function processEmail( & $oEmail)
00104     {
00105         // #669 PHP5 claims that you cant pas full this but should instead pass reference what is anyway a much better idea
00106         // dodger: removed "return" as by reference you dont need any return
00107 
00108     }
00109 }