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         // Replacing only once per page
00073         $sOutput = str_ireplace("</head>", "</head>\n  <!-- OXID eShop {$sEdition}, Version {$sVersion}, Shopping Cart System (c) OXID eSales AG 2003 - {$sCurYear} - http://www.oxid-esales.com -->", ltrim($sOutput));
00074 
00075         return $sOutput;
00076     }
00077 
00087     public function processViewArray($aViewData, $sClassName)
00088     {
00089         return $aViewData;
00090     }
00091 
00099     public function processEmail( & $oEmail)
00100     {
00101         // #669 PHP5 claims that you cant pas full this but should instead pass reference what is anyway a much better idea
00102         // dodger: removed "return" as by reference you dont need any return
00103 
00104     }
00105 }

Generated by  doxygen 1.6.2