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