Files
        @ 12553a2740cb
    
        
              Branch filter: 
        
    Location: SlatePermutate/schedulecreator.php - annotation
        
            
            12553a2740cb
            2.2 KiB
            text/x-php
        
        
    
    Split out the Section class into Section and SectionMeeting. This allows the flexibility of Cedarville's system where a single section may have multiple meeting times -- most commonly for labs, but sometimes classes have multiple lectures.
    27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 28ba454c4ff1 27edaecc0d90 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 27edaecc0d90  | <?php
include_once 'class.schedule.php';
include_once 'class.class.php';
include_once 'class.section.php';
//**************************************************
// ScheduleCreator.java	Author: Nathan Gelderloos
// 
// Creates a list of classes.
//**************************************************
   
         $allClasses = new Schedule("Fall 2010");
  	
         $allClasses->addClass("CS 104");
         $allClasses->addSection("CS 104", "A", 1030, 1120, 'th');
      	
         $allClasses->addClass("Engr 209");
         $allClasses->addSection("Engr 209", "A", 1330, 1420, 'mtwf');
         $allClasses->addSection("Engr 209", "B", 1430, 1520, 'mtwf');
      	
         $allClasses->addClass("Engr 209L");
         $allClasses->addSection("Engr 209L", "A", 1830, 2120, 'h');
         $allClasses->addSection("Engr 209L", "B", 1830, 2120, 'w');
      	
         $allClasses->addClass("Math 231");
         $allClasses->addSection("Math 231", "A", 800, 850, 'mtwf');
      	
         $allClasses->addClass("Phys 235");
         $allClasses->addSection("Phys 235", "A", 900, 950, 'mwf');
         $allClasses->addSection("Phys 235", "B", 1130, 1220, 'mwf');
         $allClasses->addSection("Phys 235", "C", 1230, 1320, 'mwf');
      	
         $allClasses->addClass("Phys 235L");
         $allClasses->addSection("Phys 235L", "A", 1430, 1720, 'm');
         $allClasses->addSection("Phys 235L", "B", 1430, 1720, 'w');
         $allClasses->addSection("Phys 235L", "C", 830, 1120, 'h');
         $allClasses->addSection("Phys 235L", "D", 1230, 1520, 'h');
      	
         $allClasses->addClass("Rel 131");
         $allClasses->addSection("Rel 131", "A", 800, 850, 'mwf');
         $allClasses->addSection("Rel 131", "B", 900, 950, 'mwf');
         $allClasses->addSection("Rel 131", "C", 1330, 1420, 'mwf');
         $allClasses->addSection("Rel 131", "D", 1430, 1520, 'mwf');
         $allClasses->addSection("Rel 131", "E", 835, 950, 'th');
         $allClasses->addSection("Rel 131", "F", 1030, 1145, 'th');
         $allClasses->addSection("Rel 131", "G", 1205, 1320, 'th');
         $allClasses->addSection("Rel 131", "H", 1330, 1445, 'th');
      	       
         $allClasses->findPossibilities();
         $allClasses->writeoutTables();
 |