Updated installer

Added Website and Game models
Updted config loading

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-12-15 22:10:35 +01:00
commit 5393be4daf
39 changed files with 779 additions and 661 deletions

View file

@ -4,4 +4,22 @@ class Wootook_Empire_Exception_Exception
extends Exception
implements Wootook_Empire_Exception
{
protected $_previous = null;
public function __construct($message = null, $code = null, $previous = null)
{
if (PHP_VERSION_ID >= 50300) {
parent::__construct($message, $code, $previous);
} else {
parent::__construct($message, $code);
$this->_previous = $previous;
}
}
public function __call($method, $params)
{
if (strtolower($method) == 'getprevious') {
return $this->_previous;
}
}
}

View file

@ -4,4 +4,22 @@ class Wootook_Empire_Exception_RuntimeException
extends RuntimeException
implements Wootook_Empire_Exception
{
protected $_previous = null;
public function __construct($message = null, $code = null, $previous = null)
{
if (PHP_VERSION_ID >= 50300) {
parent::__construct($message, $code, $previous);
} else {
parent::__construct($message, $code);
$this->_previous = $previous;
}
}
public function __call($method, $params)
{
if (strtolower($method) == 'getprevious') {
return $this->_previous;
}
}
}