diff --git a/class.class.php b/class.class.php
--- a/class.class.php
+++ b/class.class.php
@@ -11,79 +11,78 @@ include_once 'class.section.php';
 
 class Classes
 {
-	private $name;		// String
-    private $sections;	// Array of sections
-    private $nsections;	// int
+  private $name;		// String
+  private $sections;	// Array of sections
+  private $nsections;	// int
     
-	//--------------------------------------------------
-	// Creates a class with the given name.
-	//--------------------------------------------------
-    function __construct($n)
-    {
-		$this->name = $n;
-        $this->nsections = 0;
-    }
-	
-	//--------------------------------------------------
-	// Adds a new section to the class.
-	//--------------------------------------------------
-    function addSection($l, $p, $s, $e, $d)
-    {
-        $this->sections[$this->nsections] = new Section($l, $p, $s, $e, $d);
-        $this->nsections++;
-    }
+  //--------------------------------------------------
+  // Creates a class with the given name.
+  //--------------------------------------------------
+  function __construct($n)
+  {
+    $this->name = $n;
+    $this->nsections = 0;
+  }
 	
-	//--------------------------------------------------
-    // Returns the number of sections in the class.
-	//--------------------------------------------------
-    function getnsections()
-    {
-        return $this->nsections;
-    }
+  //--------------------------------------------------
+  // Adds a new section to the class.
+  //--------------------------------------------------
+  function addSection($l, $p, $s, $e, $d)
+  {
+    $this->sections[$this->nsections] = new Section($l, $p, $s, $e, $d);
+    $this->nsections++;
+  }
 	
-	//--------------------------------------------------
-	// Returns the desired section for analysis.
-	//--------------------------------------------------
-    function getSection($i)
-    {
-		// Checks to make sure the desired section is part of the set.
-        if(isset($this->sections[$i]))
-		{
-			//echo "Object sections[$i] was set
";
-        } else {
-            echo "Object sections[$i] was NOT set 
";
-		}
-
-        $result = $this->sections[$i];
-        return $result;
-    }
-    
-	//--------------------------------------------------
-	// Returns the name of the class.
-	//--------------------------------------------------
-    function getName()
-    {
-        return $this->name;
+  //--------------------------------------------------
+  // Returns the number of sections in the class.
+  //--------------------------------------------------
+  function getnsections()
+  {
+    return $this->nsections;
+  }
+	
+  //--------------------------------------------------
+  // Returns the desired section for analysis.
+  //--------------------------------------------------
+  function getSection($i)
+  {
+    // Checks to make sure the desired section is part of the set.
+    if(isset($this->sections[$i]))
+      {
+	//echo "Object sections[$i] was set
";
+      } else {
+      echo "Object sections[$i] was NOT set 
";
     }
 
-    /**
-     * \brief
-     *   Renders this Classes into something suitable for input.php.
-     */
-    function input_form_render($class_key)
-    {
-      $n = "\n";
-      $out = '
Select Schedules to Print :: Return to normal view :: Home
'; - echo 'Select Schedules to Print :: Return to normal view :: Home
'; + echo '| " . ($i+1) . " | \n\t\tMonday | \n\t\tTuesday | \n\t\tWednesday | \n\t\tThursday | \n\t\tFriday | \n\t|||||||||||||||||||||||||||||||||||||||||||||
| " . ($i+1) . " | \n\t\tMonday | \n\t\tTuesday | \n\t\tWednesday | \n\t\tThursday | \n\t\tFriday | \n\t|||||||||||||||||||||||||||||||||||||||||||||
| " . $this->prettyTime($time[$r]) . " | "; + $table .= "\n\t||||||||||||||||||||||||||||||||||||||||||||||||||
| " . $this->prettyTime($time[$r]) . " | "; - //---------------MONDAY--------------- - for($j = 0; $j < $this->nclasses; $j++) - { - if($M == -1) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getM()) - { - if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $M = $j; - $filled = true; - } else { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $filled = true; - } - } - } - } else { - if($j == $M) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t"; - $filled = true; - } else { - $table .= "\n\t\t | "; - $M = -1; - $filled = true; - } - } - } - } + //---------------MONDAY--------------- + for($j = 0; $j < $this->nclasses; $j++) + { + if($M == -1) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getM()) + { + if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $M = $j; + $filled = true; + } else { + $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $filled = true; + } + } + } + } else { + if($j == $M) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t"; + $filled = true; + } else { + $table .= "\n\t\t | "; + $M = -1; + $filled = true; + } + } + } + } - // If the cell was not filled, fill it with an empty cell. - if(!$filled) - { - $table .= "\n\t\t | "; - } - $filled = false; + // If the cell was not filled, fill it with an empty cell. + if(!$filled) + { + $table .= "\n\t\t | "; + } + $filled = false; - //---------------TUESDAY--------------- - for($j = 0; $j < $this->nclasses; $j++) - { - if($Tu == -1) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getTu()) - { - if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $Tu = $j; - $filled = true; - } else { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $filled = true; - } - } - } - } else { - if($j == $Tu) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t"; - $filled = true; - } else { - $table .= "\n\t\t | "; - $Tu = -1; - $filled = true; - } - } - } - } + //---------------TUESDAY--------------- + for($j = 0; $j < $this->nclasses; $j++) + { + if($Tu == -1) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getTu()) + { + if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $Tu = $j; + $filled = true; + } else { + $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $filled = true; + } + } + } + } else { + if($j == $Tu) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t"; + $filled = true; + } else { + $table .= "\n\t\t | "; + $Tu = -1; + $filled = true; + } + } + } + } - // If the cell was not filled, fill it with an empty cell. - if(!$filled) - { - $table .= "\n\t\t | "; - } - $filled = false; + // If the cell was not filled, fill it with an empty cell. + if(!$filled) + { + $table .= "\n\t\t | "; + } + $filled = false; - //---------------WEDNESDAY--------------- - for($j = 0; $j < $this->nclasses; $j++) - { - if($W == -1) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getW()) - { - if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $W = $j; - $filled = true; - } else { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $filled = true; - } - } - } - } else { - if($j == $W) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t"; - $filled = true; - } else { - $table .= "\n\t\t | "; - $W = -1; - $filled = true; - } - } - } - } + //---------------WEDNESDAY--------------- + for($j = 0; $j < $this->nclasses; $j++) + { + if($W == -1) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getW()) + { + if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $W = $j; + $filled = true; + } else { + $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $filled = true; + } + } + } + } else { + if($j == $W) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t"; + $filled = true; + } else { + $table .= "\n\t\t | "; + $W = -1; + $filled = true; + } + } + } + } - // If the cell was not filled, fill it with an empty cell. - if(!$filled) - { - $table .= "\n\t\t | "; - } - $filled = false; + // If the cell was not filled, fill it with an empty cell. + if(!$filled) + { + $table .= "\n\t\t | "; + } + $filled = false; - //---------------THURSDAY--------------- - for($j = 0; $j < $this->nclasses; $j++) - { - if($Th == -1) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getTh()) - { - if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $Th = $j; - $filled = true; - } else { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $filled = true; - } - } - } - } else { - if($j == $Th) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t"; - $filled = true; - } else { - $table .= "\n\t\t | "; - $Th = -1; - $filled = true; - } - } - } - } + //---------------THURSDAY--------------- + for($j = 0; $j < $this->nclasses; $j++) + { + if($Th == -1) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getTh()) + { + if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $Th = $j; + $filled = true; + } else { + $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $filled = true; + } + } + } + } else { + if($j == $Th) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t"; + $filled = true; + } else { + $table .= "\n\t\t | "; + $Th = -1; + $filled = true; + } + } + } + } - // If the cell was not filled, fill it with an empty cell. - if(!$filled) - { - $table .= "\n\t\t | "; - } - $filled = false; + // If the cell was not filled, fill it with an empty cell. + if(!$filled) + { + $table .= "\n\t\t | "; + } + $filled = false; - //---------------FRIDAY--------------- - for($j = 0; $j < $this->nclasses; $j++) - { - if($F == -1) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getF()) - { - if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $F = $j; - $filled = true; - } else { - $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; - $filled = true; - } - } - } - } else { - if($j == $F) - { - if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) - { - $table .= "\n\t\t"; - $filled = true; - } else { - $table .= "\n\t\t | "; - $F = -1; - $filled = true; - } - } - } - } + //---------------FRIDAY--------------- + for($j = 0; $j < $this->nclasses; $j++) + { + if($F == -1) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getF()) + { + if(($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() >= $time[$r]) && ($this->classStorage[$j]->getSection($this->storage[$i][$j])->getStartTime() < $time[$r+1])) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t | " . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $F = $j; + $filled = true; + } else { + $table .= "\n\t\t" . $this->classStorage[$j]->getName() . " " . $this->classStorage[$j]->getSection($this->storage[$i][$j])->getLetter() . " | "; + $filled = true; + } + } + } + } else { + if($j == $F) + { + if($this->classStorage[$j]->getSection($this->storage[$i][$j])->getEndTime() > $time[$r+1]) + { + $table .= "\n\t\t"; + $filled = true; + } else { + $table .= "\n\t\t | "; + $F = -1; + $filled = true; + } + } + } + } - // If the cell was not filled, fill it with an empty cell. - if(!$filled) - { - $table .= "\n\t\t | "; - } - $filled = false; + // If the cell was not filled, fill it with an empty cell. + if(!$filled) + { + $table .= "\n\t\t | "; + } + $filled = false; - // End of row - $table .= "\n\t | 
There are no possible schedules. Please try again.
'; - } + echo $table + . "There are no possible schedules. Please try again.
'; + } - /* edit button */ - if (!isset($savedkey)) - { - if (isset($_REQUEST['savedkey'])) - $savedkey = (int)$_REQUEST['savedkey']; - else - /* - * if this is a new saved schedule, it'll be the - * next item added to $_SESSION['saved'] - */ - $savedkey = max(array_keys($_SESSION['saved'])) + 1; - } - echo ''; + /* edit button */ + if (!isset($savedkey)) + { + if (isset($_REQUEST['savedkey'])) + $savedkey = (int)$_REQUEST['savedkey']; + else + /* + * if this is a new saved schedule, it'll be the + * next item added to $_SESSION['saved'] + */ + $savedkey = max(array_keys($_SESSION['saved'])) + 1; + } + echo ''; - echo "There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.
"; + echo "There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.
"; - $outputPage->foot(); - } + $outputPage->foot(); + } - /** - * \brief - * Render the input table form for editing a saved schedule in input.php. - * - * This function's output must be synchronized with the - * associated javascript in scripts/scheduleInput.js. - */ - function input_form_render() - { - $out = ''; - static $n = "\n"; + /** + * \brief + * Render the input table form for editing a saved schedule in input.php. + * + * This function's output must be synchronized with the + * associated javascript in scripts/scheduleInput.js. + */ + function input_form_render() + { + $out = ''; + static $n = "\n"; - foreach ($this->classStorage as $class_key => $class) - $out .= $class->input_form_render($class_key); + foreach ($this->classStorage as $class_key => $class) + $out .= $class->input_form_render($class_key); - return $out; - } + return $out; + } - //-------------------------------------------------- - // Changes the title of the page. - //-------------------------------------------------- - function changeTitle($t) - { - $this->title = $t; - } + //-------------------------------------------------- + // Changes the title of the page. + //-------------------------------------------------- + function changeTitle($t) + { + $this->title = $t; + } - //-------------------------------------------------- - // Make the time "pretty." - //-------------------------------------------------- - function prettyTime($t){ - if($t > 1259) - { - $t = ($t-1200); - return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " PM"; - } else { - return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " AM"; - } - } + //-------------------------------------------------- + // Make the time "pretty." + //-------------------------------------------------- + function prettyTime($t){ + if($t > 1259) + { + $t = ($t-1200); + return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " PM"; + } else { + return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " AM"; + } + } /** * \brief diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -8,143 +8,144 @@ include_once 'errors.php'; // Represents a section of a class. //-------------------------------------------------- -class Section { - - private $letter; // Section letter - private $prof; // Professor - private $start; // Start time - private $tend; // End time - private $idays; // Integer version of meeting days - private $bdays; // Boolean array of meeting days - -function __construct ($l, $p, $s, $e, $d) +class Section { - $this->letter = $l; - $this->prof = $p; - $this->start = $s; - $this->tend = $e; - $this->idays = $d; - $this->bdays = $this->setbdays(); -} + + private $letter; // Section letter + private $prof; // Professor + private $start; // Start time + private $tend; // End time + private $idays; // Integer version of meeting days + private $bdays; // Boolean array of meeting days -function setbdays() -{ - $result; + function __construct ($l, $p, $s, $e, $d) + { + $this->letter = $l; + $this->prof = $p; + $this->start = $s; + $this->tend = $e; + $this->idays = $d; + $this->bdays = $this->setbdays(); + } - if($this->idays == 12345) + function setbdays() + { + $result; + + if($this->idays == 12345) {$result[0] = true; $result[1] = true; $result[2] = true; $result[3] = true; $result[4] = true;} - if($this->idays == 1234) + if($this->idays == 1234) {$result[0] = true; $result[1] = true; $result[2] = true; $result[3] = true; $result[4] = false;} - if($this->idays == 1235) + if($this->idays == 1235) {$result[0] = true; $result[1] = true; $result[2] = true; $result[3] = false; $result[4] = true;} - if($this->idays == 1245) + if($this->idays == 1245) {$result[0] = true; $result[1] = true; $result[2] = false; $result[3] = true; $result[4] = true;} - if($this->idays == 1345) + if($this->idays == 1345) {$result[0] = true; $result[1] = false; $result[2] = true; $result[3] = true; $result[4] = true;} - if($this->idays == 2345) + if($this->idays == 2345) {$result[0] = false; $result[1] = true; $result[2] = true; $result[3] = true; $result[4] = true;} - if($this->idays == 123) + if($this->idays == 123) {$result[0] = true; $result[1] = true; $result[2] = true; $result[3] = false; $result[4] = false;} - if($this->idays == 124) + if($this->idays == 124) {$result[0] = true; $result[1] = true; $result[2] = false; $result[3] = true; $result[4] = false;} - if($this->idays == 125) + if($this->idays == 125) {$result[0] = true; $result[1] = true; $result[2] = false; $result[3] = false; $result[4] = true;} - if($this->idays == 134) + if($this->idays == 134) {$result[0] = true; $result[1] = false; $result[2] = true; $result[3] = true; $result[4] = false;} - if($this->idays == 135) + if($this->idays == 135) {$result[0] = true; $result[1] = false; $result[2] = true; $result[3] = false; $result[4] = true;} - if($this->idays == 145) + if($this->idays == 145) {$result[0] = true; $result[1] = false; $result[2] = false; $result[3] = true; $result[4] = true;} - if($this->idays == 234) + if($this->idays == 234) {$result[0] = false; $result[1] = true; $result[2] = true; $result[3] = true; $result[4] = false;} - if($this->idays == 235) + if($this->idays == 235) {$result[0] = false; $result[1] = true; $result[2] = true; $result[3] = false; $result[4] = true;} - if($this->idays == 245) + if($this->idays == 245) {$result[0] = false; $result[1] = true; $result[2] = false; $result[3] = true; $result[4] = true;} - if($this->idays == 345) + if($this->idays == 345) {$result[0] = false; $result[1] = false; $result[2] = true; $result[3] = true; $result[4] = true;} - if($this->idays == 12) + if($this->idays == 12) {$result[0] = true; $result[1] = true; $result[2] = false; $result[3] = false; $result[4] = false;} - if($this->idays == 13) + if($this->idays == 13) {$result[0] = true; $result[1] = false; $result[2] = true; $result[3] = false; $result[4] = false;} - if($this->idays == 14) + if($this->idays == 14) {$result[0] = true; $result[1] = false; $result[2] = false; $result[3] = true; $result[4] = false;} - if($this->idays == 15) + if($this->idays == 15) {$result[0] = true; $result[1] = false; $result[2] = false; $result[3] = false; $result[4] = true;} - if($this->idays == 23) + if($this->idays == 23) {$result[0] = false; $result[1] = true; $result[2] = true; $result[3] = false; $result[4] = false;} - if($this->idays == 24) + if($this->idays == 24) {$result[0] = false; $result[1] = true; $result[2] = false; $result[3] = true; $result[4] = false;} - if($this->idays == 25) + if($this->idays == 25) {$result[0] = false; $result[1] = true; $result[2] = false; $result[3] = false; $result[4] = true;} - if($this->idays == 34) + if($this->idays == 34) {$result[0] = false; $result[1] = false; $result[2] = true; $result[3] = true; $result[4] = false;} - if($this->idays == 35) + if($this->idays == 35) {$result[0] = false; $result[1] = false; $result[2] = true; $result[3] = false; $result[4] = true;} - if($this->idays == 45) + if($this->idays == 45) {$result[0] = false; $result[1] = false; $result[2] = false; $result[3] = true; $result[4] = true;} - if($this->idays == 1) + if($this->idays == 1) {$result[0] = true; $result[1] = false; $result[2] = false; $result[3] = false; $result[4] = false;} - if($this->idays == 2) + if($this->idays == 2) {$result[0] = false; $result[1] = true; $result[2] = false; $result[3] = false; $result[4] = false;} - if($this->idays == 3) + if($this->idays == 3) {$result[0] = false; $result[1] = false; $result[2] = true; $result[3] = false; $result[4] = false;} - if($this->idays == 4) + if($this->idays == 4) {$result[0] = false; $result[1] = false; $result[2] = false; $result[3] = true; $result[4] = false;} - if($this->idays == 5) + if($this->idays == 5) {$result[0] = false; $result[1] = false; $result[2] = false; $result[3] = false; $result[4] = true;} - return $result; -} + return $result; + } -function getLetter() -{ - return $this->letter; -} + function getLetter() + { + return $this->letter; + } -function getProf() -{ - return $this->prof; -} + function getProf() + { + return $this->prof; + } -function getStartTime() -{ - return $this->start; -} + function getStartTime() + { + return $this->start; + } -function getEndTime() -{ - return $this->tend; -} + function getEndTime() + { + return $this->tend; + } -function getM() -{ - return $this->bdays[0]; -} + function getM() + { + return $this->bdays[0]; + } -function getTu() -{ - return $this->bdays[1]; -} + function getTu() + { + return $this->bdays[1]; + } -function getW() -{ - return $this->bdays[2]; -} + function getW() + { + return $this->bdays[2]; + } -function getTh() -{ - return $this->bdays[3]; -} + function getTh() + { + return $this->bdays[3]; + } -function getF() -{ - return $this->bdays[4]; -} + function getF() + { + return $this->bdays[4]; + } /** * \brief @@ -175,7 +176,7 @@ function getF() . ' name="postData[' . $class_key . '][' . $section_key . '][letter]"' . $n . ' value="' . $this->letter . '" />' . $n . " \n"; - break; + break; } $out .= "