ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Lang.php
Go to the documentation of this file.
1 <?php
2 
9 {
10 
17  public function transform($attr, $config, $context)
18  {
19  $lang = isset($attr['lang']) ? $attr['lang'] : false;
20  $xml_lang = isset($attr['xml:lang']) ? $attr['xml:lang'] : false;
21 
22  if ($lang !== false && $xml_lang === false) {
23  $attr['xml:lang'] = $lang;
24  } elseif ($xml_lang !== false) {
25  $attr['lang'] = $xml_lang;
26  }
27  return $attr;
28  }
29 }
30 
31 // vim: et sw=4 sts=4
Post-transform that copies lang&#39;s value to xml:lang (and vice-versa)
Definition: Lang.php:8
Processes an entire attribute array for corrections needing multiple values.
$context
Definition: webdav.php:25
$config
Definition: bootstrap.php:15
transform($attr, $config, $context)
Definition: Lang.php:17
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
Definition: langwiz.php:349