ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
Ruby.php
Go to the documentation of this file.
1
<?php
2
7
class
HTMLPurifier_HTMLModule_Ruby
extends
HTMLPurifier_HTMLModule
8
{
9
10
public
$name
=
'Ruby'
;
11
12
public
function
setup
(
$config
) {
13
$this->
addElement
(
'ruby'
,
'Inline'
,
14
'Custom: ((rb, (rt | (rp, rt, rp))) | (rbc, rtc, rtc?))'
,
15
'Common'
);
16
$this->
addElement
(
'rbc'
,
false
,
'Required: rb'
,
'Common'
);
17
$this->
addElement
(
'rtc'
,
false
,
'Required: rt'
,
'Common'
);
18
$rb = $this->
addElement
(
'rb'
,
false
,
'Inline'
,
'Common'
);
19
$rb->excludes = array(
'ruby'
=>
true
);
20
$rt = $this->
addElement
(
'rt'
,
false
,
'Inline'
,
'Common'
, array(
'rbspan'
=>
'Number'
));
21
$rt->excludes = array(
'ruby'
=>
true
);
22
$this->
addElement
(
'rp'
,
false
,
'Optional: #PCDATA'
,
'Common'
);
23
}
24
25
}
26
27
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
HTMLModule
Ruby.php
Generated on Mon Apr 25 2016 19:01:32 for ILIAS by
1.8.1.2 (using
Doxyfile
)