00001 <?php
00010 class STransInteractivateInstructorHelper extends STransInteractivateHelperBase {
00011 protected $MAPPINGS = array(
00012 'description' => 'Description',
00013 'placements' => 'Place in Mathematics Curriculum',
00014 'preparations' => 'Be Prepared to',
00015 'title' => 'What is '
00016 );
00017
00026 protected function processSectionXML($xml) {
00027 global $STRING;
00028 $this->sectionDepth++;
00029 $mapping = $xml->getAttribute('mapping');
00030 $html = "";
00031 if($mapping == 'textbooks')
00032 $html .= $this->processTextbooks($xml);
00033 else if($mapping == 'standards')
00034 $html .= $this->processStandards($xml);
00035 else if($mapping == 'title') {
00036 $name = $this->getTranslator()->getInputOption('title');
00037 $html = '<h3 class="StdXML pageTitle">' . $name . ' Curriculum Context and Resources</h3>';
00038 }
00039 else {
00040 $name = $this->MAPPINGS[$mapping];
00041
00042
00043 $this->sectionDepth--;
00044 $res = parent::processSectionXML($xml);
00045 $this->sectionDepth++;
00046 $html = '<div class="coreSection"><h3 class="pageTitle">' . $name . '</h3>' . $res . "</div>";
00047 }
00048
00049 $this->sectionDepth--;
00050 return $html;
00051 }
00052 }
00053
00054 ?>