Class SettingsCollection
	
	
A collection manager of company settings
	 
	
		Methods summary
		
		
			| 
				 public 
				
				
				 |  | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchSettings( Companies$companies = null, integer $company_id = null, boolean $ignore_inheritence = false )
				
Fetches all settings that apply to this company. Settings are inherited in
the order of company_settings -> settings where "->" represents the left
item inheriting (and overwriting in the case of duplicates) values found in the
right item. 
				
Fetches all settings that apply to this company. Settings are inherited in
the order of company_settings -> settings where "->" represents the left
item inheriting (and overwriting in the case of duplicates) values found in the
right item. Parameters
						$companiesCompanies$companies A reference to the Companies model object
$company_idinteger$company_id The company ID to retrieve settings for
$ignore_inheritenceboolean$ignore_inheritence True to only retrieve company settings, false to get all
inherited settings (default false)
Returns
						arrayA key=>value array of company settings
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchSetting( Companies$companies = null, string $company_id = null, mixed $key = null )
				
Fetches a specific setting that apply to this company. Settings are inherited
in the order of company_settings -> settings where "->" represents the
left item inheriting (and overwriting in the case of duplicates) values found in
the right item. 
				
Fetches a specific setting that apply to this company. Settings are inherited
in the order of company_settings -> settings where "->" represents the
left item inheriting (and overwriting in the case of duplicates) values found in
the right item. Parameters
						$companiesinteger$company_id The company ID to retrieve a setting for
$company_idstring$key The key name of the setting to fetch
$keyReturns
						arraycontaining the key and value for this setting
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchSystemSettings( Settings$settings = null )
				
Fetches all system settings. 
				
Fetches all system settings. Parameters
						$settingsSettings$settings A reference to the Settings model object
Returns
						arrayA key=>value array of system settings
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchSystemSetting( Settings$settings = null, string $key = null )
				
Fetches a specific system setting. 
				
Fetches a specific system setting. Parameters
						$settingsSettings$settings A reference to the Settings model object
$keystring$key The key name of the setting to fetch
Returns
						arraycontaining the key and value for this setting
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchClientGroupSettings( integer $client_group_id, ClientGroups$settings = null, boolean $ignore_inheritence = false )
				
Fetches all client group settings for a particular group 
				
Fetches all client group settings for a particular group Parameters
						$client_group_idinteger$client_group_id The client group ID to fetch settings for
$settingsClientGroups$settings A reference to the ClientGroups model object
$ignore_inheritenceboolean$ignore_inheritence True to fetch only client group settings without inheriting
from company or system settings (default false)
Returns
						arrayA key=>value array of client group settings
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchClientGroupSetting( integer $client_group_id, ClientGroups$settings = null, string $key = null )
				
Fetches a specific ClientGroup setting. 
				
Fetches a specific ClientGroup setting. Parameters
						$client_group_idinteger$client_group_id The client group ID to fetch a setting for
$settingsClientGroups$settings A reference to the ClientGroups model object
$keystring$key The key name of the setting to fetch
Returns
						arraycontaining the key and value for this setting
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchClientSettings( integer $client_id, Clients$settings = null )
				
Fetches all client settings for a particular client 
				
Fetches all client settings for a particular client Parameters
						$client_idinteger$client_id The client ID to fetch settings for
$settingsClients$settings A reference to the Clients model object
Returns
						arrayA key=>value array of client group settings
 
 | 
		
			| 
				 public 
				array
				
				 | 
			#
			fetchClientSetting( integer $client_id, Clients$settings = null, string $key = null )
				
Fetches a specific Client setting. 
				
Fetches a specific Client setting. Parameters
						$client_idinteger$client_id The client group ID to fetch a setting for
$settingsClients$settings A reference to the Clients model object
$keystring$key The key name of the setting to fetch
Returns
						arraycontaining the key and value for this setting
 
 | 
		
		Magic methods summary