public function errors()
 {
     if (!$this->hasFolder()) {
         throw new Exception(sprintf('%s parser "folder" no exists', $this->getName()));
     } elseif (!hasClass()) {
         throw new Exception(sprintf('%s parser "class" no exists', $this->getName()));
     }
 }
示例#2
0
					<li id="grades-tab" role="presentation" class="active"><a>Grades</a></li>
					<li id="final-tab" role="presentation" class="active"><a>Final Grade</a></li>
					<?php 
if ($_SESSION["name"]) {
    ?>
					<li class="dropdown active">
						<a class="dropdown-toggle" data-toggle="dropdown">
							Classes <span class="caret"></span>
						</a>
						<ul id="saves" class="dropdown-menu">
							<?php 
    for ($i = 1; $i <= $totalClasses; $i++) {
        ?>
								
								<?php 
        echo hasClass($userClasses, $i);
        ?>

							<?php 
    }
    ?>
						</ul>

					</li>
						 <?php 
}
?>
					<li class="divider"></li>
					<li id="add-group" role="presentation" class="pull-right"><a>Add Group</a></li>
				</ul>
			</div>
<?php

session_start();
include "mysql/server.php";
include 'inc/functions.php';
$link = mysqli_connect($server, $username, $passw, $username);
include 'inc/header.php';
?>
<div class="panel"> 
	<h2><?php 
$row = getClasses($link);
if (hasClass($row, 1)) {
    printClass($row, 1);
} else {
    echo "Save class";
}
?>
</h2>
	
</div>


<?

include('inc/footer.php');

?>
function removeComingSoon($dom)
{
    foreach (nodes($dom, '*') as $node) {
        if (hasClass($node, 'coming_soon')) {
            $node->parentNode->removeChild($node);
        }
    }
}