oxstr.php

Go to the documentation of this file.
00001 <?php
00002 
00011 class oxStr
00012 {
00018     static protected $_oHandler;
00019 
00025     static public function getStr()
00026     {
00027         if (!isset(self::$_oHandler)) {
00028             //let's init now non-static instance of oxStr to get the instance of str handler
00029             self::$_oHandler = oxNew("oxStr")->_getStrHandler();
00030         }
00031 
00032         return self::$_oHandler;
00033     }
00034 
00042     protected function _getStrHandler()
00043     {
00044         if (oxConfig::getInstance()->isUtf() && function_exists('mb_strlen')) {
00045             return oxNew("oxStrMb");
00046         } else {
00047             return oxNew("oxStrRegular");
00048         }
00049     }
00050 
00051 }

Generated on Tue Apr 21 15:45:45 2009 for OXID eShop CE by  doxygen 1.5.5