store the total amount of achievable XPs for a Questgroup in the database instead of calculating it every time (Issue #281)

This commit is contained in:
coderkun 2014-05-15 18:17:51 +02:00
commit fe75a67215
3472 changed files with 598011 additions and 0 deletions

View file

@ -0,0 +1,67 @@
<?php
/**
* NRE
*
* @author coderkun <olli@coderkun.de>
* @copyright 2013 coderkun (http://www.coderkun.de)
* @license http://www.gnu.org/licenses/gpl.html
* @link http://www.coderkun.de/projects/nre
*/
namespace nre\exceptions;
/**
* Exception: Component not valid.
*
* @author coderkun <olli@coderkun.de>
*/
class ComponentNotValidException extends \nre\exceptions\ClassNotValidException
{
/**
* Error code
*
* @var int
*/
const CODE = 77;
/**
* Error message
*
* @var string
*/
const MESSAGE = 'component not valid';
/**
* Construct a new exception.
*
* @param string $componentName Name of the invalid Component
*/
function __construct($componentName)
{
parent::__construct(
$componentName,
self::MESSAGE,
self::CODE
);
}
/**
* Get the name of the invalid Component.
*
* @return string Name of the invalid Component
*/
public function getComponentName()
{
return $this->getClassName();
}
}
?>