TYPO3 CMS  TYPO3_6-2
SysLanguageViewHelper.php
Go to the documentation of this file.
1 <?php
3 
22 
29  public function render($uids = '') {
30  if (!$uids) {
31  return '';
32  }
33 
34  $content = '';
35  $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
36  'uid, title, flag',
37  'sys_language',
38  'uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($uids) . ')',
39  'title ASC'
40  );
41  while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
42  $content .= '<li>' . htmlspecialchars($row['title']) . ' [' . htmlspecialchars($row['uid']) . ']</li>';
43  }
44  $GLOBALS['TYPO3_DB']->sql_free_result($res);
45  return '<ul>' . $content . '</ul>';
46  }
47 
48 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]