Implemented constructor, destructor, setTable() and insertModel() in AOOSStorageDevic...
[AOOS.git] / AOOSCore.php
blob229ebf26a619fe165e8720e6c313fc85301748d6
1 <?php
3 require_once("AOOSException.php");
5 /**
6 * AOOSCore
8 * The core class of AOOS
10 * @author Sebastian Skejø
13 class AOOSCore
15 private $_exceptions = array();
16 private $_loadedModules = array();
18 /**
19 * Sets an exception
20 * @param AOOSException $e The exception
22 public function setException($e)
24 $this->_exceptions[$e->getName()] = $e;
25 if ($e->getEcode() == 0)
27 exit($e);
30 return true;
33 public function printExceptions()
35 $str = "<div class=\"Exceptions\">";
36 foreach ($this->_exceptions as $e)
38 $str .= $e;
40 $str .= "</div>";
41 print $str;