Download

Concepts

Example

Documentation

Plugins

How to

Contribute

Links

ConfManager

What is this ?

The ConfManager class is the class that manage the framework configuration file. It will take care of loading it and will give you method to access it. The ConfManager object is a singleton. You will call it by using ConfManager.getInstance().

ConfManager methods

get(key)

Will return the framework value in the framework configuration file or the value passed throw the initializer related to the key passed.

Example :

In the framework configuration file : 
<?xml version="1.0" encoding="utf-8"?>
<items>
	<framework>
		<item version="1.0.7" />
		<url>
			<item mvc="http://localhost/js/application/mvc.xml" />
			<item baseUrl="http://localhost/js/" />		
			<item addBaseUrl="true" />
		</url>
		...
	</framework>
	...
</items>	

In a ModelHelper :
ConfManager.getInstance().get('baseUrl'); // --> http://localhost/js/

getApplicationData(key)

Is similar to the get method but will get you one of your application data.