ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
Post-trasnform that ensures that bdo tags have the dir attribute set.
Definition: BdoDir.php:9
transform($attr, $config, $context)
Definition: BdoDir.php:17
Processes an entire attribute array for corrections needing multiple values.