ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Ruby.php
Go to the documentation of this file.
1 <?php
2 
8 {
9 
13  public $name = 'Ruby';
14 
18  public function setup($config)
19  {
20  $this->addElement(
21  'ruby',
22  'Inline',
23  'Custom: ((rb, (rt | (rp, rt, rp))) | (rbc, rtc, rtc?))',
24  'Common'
25  );
26  $this->addElement('rbc', false, 'Required: rb', 'Common');
27  $this->addElement('rtc', false, 'Required: rt', 'Common');
28  $rb = $this->addElement('rb', false, 'Inline', 'Common');
29  $rb->excludes = array('ruby' => true);
30  $rt = $this->addElement('rt', false, 'Inline', 'Common', array('rbspan' => 'Number'));
31  $rt->excludes = array('ruby' => true);
32  $this->addElement('rp', false, 'Optional: #PCDATA', 'Common');
33  }
34 }
35 
36 // vim: et sw=4 sts=4