Difference between revisions of "Code Notes"
From OpenEMR Project Wiki
		| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==  | ==General==  | ||
*[http://github.com/openemr/openemr| OpenEMR Github Page]  | *[http://github.com/openemr/openemr| OpenEMR Github Page]  | ||
*[[PHP Programming Notes]]  | |||
<br>  | |||
<br>  | |||
==Important PHP Includes==  | |||
=====[OpenEMR Path]/interface/globals.php=====  | |||
::Establishes global functions & variables.   | |||
=====[OpenEMR Path]/library/globals.inc.php=====  | |||
::Establishes global functions & variables.  If you include globals.php, this will be included as part of that.  | |||
<br>  | |||
=====[OpenEMR Path]/library/acl.inc=====  | |||
::Access control system.  Manages which users can control/see which features.  | |||
<br>  | |||
=====[OpenEMR Path]/library/patient.inc=====  | |||
::Functions to search and modify the table "patient_data".  | |||
<br>  | |||
=====[OpenEMR Path]/library/sql.inc=====  | |||
::SQL Functions.  | |||
<br>  | |||
<br>  | |||
==Important Javascript Includes==  | |||
=====[OpenEMR Path]/library/js/jquery-[VERSION].min.js=====  | |||
::JQuery.  | |||
 <br>  | |||
=====[OpenEMR Path]/library/dialog.js=====  | |||
Functions to open a new window, just a regular window or a dialog window.  | |||
<br>  | |||
<br>  | |||
==Globals==  | |||
*$srcdir - [OpenEMR Path]/library  | |||
<br>  | |||
<br>  | |||
==Important Functions==  | |||
*function xl(<text>)  | |||
::Translates text to the language specified in global preferences.  Use this for all text that will be displayed.  | |||
::Declared in: /library/translation.inc.php  | |||
::Included if you include: /library/globals.php  | |||
<br>  | <br>  | ||
Latest revision as of 15:16, 4 July 2014
General
Important PHP Includes
[OpenEMR Path]/interface/globals.php
- Establishes global functions & variables.
 
[OpenEMR Path]/library/globals.inc.php
- Establishes global functions & variables. If you include globals.php, this will be included as part of that.
 
[OpenEMR Path]/library/acl.inc
- Access control system. Manages which users can control/see which features.
 
[OpenEMR Path]/library/patient.inc
- Functions to search and modify the table "patient_data".
 
[OpenEMR Path]/library/sql.inc
- SQL Functions.
 
Important Javascript Includes
[OpenEMR Path]/library/js/jquery-[VERSION].min.js
- JQuery.
 
[OpenEMR Path]/library/dialog.js
Functions to open a new window, just a regular window or a dialog window.
Globals
- $srcdir - [OpenEMR Path]/library
 
Important Functions
- function xl(<text>)
 
- Translates text to the language specified in global preferences. Use this for all text that will be displayed.
 - Declared in: /library/translation.inc.php
 - Included if you include: /library/globals.php
 
General How To