oxcmp_lang.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class oxcmp_lang extends oxView
00010 {
00011 
00017     protected $_blIsComponent = true;
00018 
00024     public function render()
00025     {
00026         parent::render();
00027 
00028         // Performance
00029         if ($this->getConfig()->getConfigParam('bl_perfLoadLanguages')) {
00030             $aLanguages = oxRegistry::getLang()->getLanguageArray(null, true, true);
00031             reset($aLanguages);
00032             while (list($sKey, $oVal) = each($aLanguages)) {
00033                 $aLanguages[$sKey]->link = $this->getConfig()->getTopActiveView()->getLink($oVal->id);
00034             }
00035 
00036             return $aLanguages;
00037         }
00038     }
00039 }