*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createConsoleWelcomeTeaserFilter () {
+ public static final function createConsoleWelcomeTeaserFilter () {
// Get a new instance
$filterInstance = new ConsoleWelcomeTeaserFilter();
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
- * @throws FilterChainException If the nodeInstance was not set
+ * @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get node instance
$nodeInstance = Registry::getRegistry()->getInstance('node');
- // Sanity-check on it
- if (is_null($nodeInstance)) {
- // Throws a FilterChainException to stop further processing
- throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
- } // END - if
-
// Now output the teaser
$nodeInstance->outputConsoleTeaser();
}