OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxcmp_lang.php
Go to the documentation of this file.
1 <?php
2 
8 class oxcmp_lang extends oxView
9 {
14  protected $_blIsComponent = true;
15 
21  public function render()
22  {
24 
25  // Performance
26  if ( $this->getConfig()->getConfigParam( 'bl_perfLoadLanguages' ) ) {
27  $aLanguages = oxRegistry::getLang()->getLanguageArray( null, true, true );
28  reset($aLanguages);
29  while ( list( $sKey, $oVal ) = each( $aLanguages ) ) {
30  $aLanguages[$sKey]->link = $this->getConfig()->getTopActiveView()->getLink($oVal->id);
31  }
32  return $aLanguages;
33  }
34  }
35 }