*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
/**
* Instance of a request class
*/
- private $requestInstance = null;
+ private $requestInstance = NULL;
/**
* Protected constructor
* @param $requestInstance An instance of a request class
* @return $factoryInstance An instance of a WebNewsFactory class
*/
- public final static function createFactoryByRequest (Requestable $requestInstance) {
+ public static final function createFactoryByRequest (Requestable $requestInstance) {
// Set default news reader class
- $configEntry = "news_reader_class";
+ $configEntry = 'news_reader_class';
// Get "page"
$page = $requestInstance->getRequestElement('page');
} // END - if
// Get the news reader class name from config
- $className = $requestInstance->getConfigInstance()->readConfig($configEntry);
+ $className = $requestInstance->getConfigInstance()->getConfigEntry($configEntry);
// Once we have that name, try to load initialize it
$newsInstance = ObjectFactory::createObjectByName($className, array($requestInstance));