public static DALConfiguration ( ) : |
||
return |
public static function DALConfiguration()
{
if (isset(self::$dalConfiguration)) {
return self::$dalConfiguration;
}
self::$dalConfiguration = new Configuration\ConfigurationHandlers\DALConfigurationHandler(dirname(__FILE__) . "/Configuration/ConfigurationFiles/DALConfiguration.xml");
return self::$dalConfiguration;
}
/** * The constructor for this repository * Accepts the fully qulaified type of the IContentDataContext implemting * data context for this repository * * @param string $dataContext */ public function __construct($dataContext = null) { if (!isset($dataContext)) { $dataContext = \Swiftriver\Core\Setup::DALConfiguration()->DataContextType; } $classType = (string) $dataContext; $this->dataContext = new $classType(); }