oxcmp_lang.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class oxcmp_lang extends oxView
00009 {
00014     protected $_blIsComponent = true;
00015 
00021     public function render()
00022     {
00023         parent::render();
00024 
00025         // Performance
00026         if ( $this->getConfig()->getConfigParam( 'bl_perfLoadLanguages' ) ) {
00027             $aLanguages = oxLang::getInstance()->getLanguageArray( null, true, true );
00028             reset($aLanguages);
00029             while ( list( $sKey, $oVal ) = each( $aLanguages ) ) {
00030                 $aLanguages[$sKey]->link = $this->getParent()->getLink($oVal->id);
00031             }
00032             return $aLanguages;
00033         }
00034     }
00035 }