A
download class.GeneralConfig.php
Language: PHP
LOC: 51
Project Info
FreeMED Project(freemed)
Server: SourceForge
Type: cvs
...reemed\freemed\freemed\lib\
   acl.php
   API.php
   bcadd.php
   calendar-functions.php
   class.AdminModule.php
   class.Agata.php
   class.Authorizations.php
   class.BaseModule.php
   class.BillingModule.php
   class.CalendarModule.php
   class.ClaimLog.php
   class.Coverage.php
   class.Debug.php
   class.diagnosis_set.php
   class.Djvu.php
   class.EMRModule.php
   class.Fax.php
   class.FixedFormEntry.php
   ...s.FixedFormRenderer.php
   class.FormRenderer.php
   class.FreeMEDSelfTest.php
   class.GeneralConfig.php
   class.GraphModule.php
   class.Guarantor.php
   class.Handler_HL7v2.php
   ...s.Handler_HL7v2_A04.php
   ...s.Handler_HL7v2_A08.php
   ...s.Handler_HL7v2_S12.php
   ...s.Handler_HL7v2_S15.php
   class.InsuranceCompany.php
   class.LanguageRegistry.php
   class.Ledger.php
   ...s.MaintenanceModule.php
   class.Messages.php
   class.OMBS_Patient.php
   class.OMBS_Wrapper.php
   class.Parser_HL7v2.php
   class.Patient.php
   class.Payer.php
   class.PHPlot.php
   class.Physician.php
   class.Procedure.php
   class.RecordLock.php
   class.Remitt.php
   class.ReportsModule.php
   class.rxlist.php
   class.Scheduler.php
   class.TeX.php
   class.User.php
   class.UtilityModule.php
   class.vCalendar.php
   class.vCalendarEvent.php
   error_handler.php
   freemed.php
   i18n.php
   iso-set.php
   macros.php
   mail-functions.php
   settings.php
   settings.php.tmpl
   xml.php
   xmlrpc_services.php

<?php
	// $Id: class.GeneralConfig.php,v 1.5 2004/02/17 23:22:11 rufustfirefly Exp $
	// $Author: rufustfirefly $

// Class: FreeMED.GeneralConfig
class GeneralConfig {

	function GeneralConfig () {
		return true;
	} // end constructor GeneralConfig

	// Method: GeneralConfig->init
	//
	//	Create initial configuration table.
	//
	function init() {
		global $sql;

		$result = $sql->query("DROP TABLE config"); 
		$result = $sql->query($sql->create_table_query(
			'config',
			array (
				'c_option' => SQL__CHAR(64),
				'c_value' => SQL__VARCHAR(100),
				'id' => SQL__SERIAL
			), array ('id')
		));
		if ($result) $display_buffer .= "<li>".__("Configuration")."</li>\n";
		$stock_config = array (
			'icd9' => '9',
			'gfx' => '1',
			'calshr' => '8',
			'calehr' => '16',
			'cal_ob' => 'enable',
			'dtfmt' => 'ymd',
			'phofmt' => 'unformatted',
			'folded' => 'yes',
			'cal1' => '',
			'cal2' => '',
			'cal3' => '',
			'cal4' => '',
			'cal5' => '',
			'cal6' => '',
			'cal7' => '',
			'cal8' => '',
			'date_widget_type' => 'js'
		);
		foreach ($stock_config AS $key => $val) {
			if (!is_integer($key)) {
				$result = $sql->query($sql->insert_query(
					'config',
					array (
						'c_option' => $key,
						'c_value' => $val
					)
				));
			}
		} // end looping through configure options

		return $result;
	} // end method init

} // end class GeneralConfig

?>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us