ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BdoDir.php
Go to the documentation of this file.
1 <?php
2 
3 // this MUST be placed in post, as it assumes that any value in dir is valid
4 
9 {
10 
17  public function transform($attr, $config, $context)
18  {
19  if (isset($attr['dir'])) {
20  return $attr;
21  }
22  $attr['dir'] = $config->get('Attr.DefaultTextDir');
23  return $attr;
24  }
25 }
26 
27 // vim: et sw=4 sts=4
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: BdoDir.php:17
Post-trasnform that ensures that bdo tags have the dir attribute set.
Definition: BdoDir.php:8