Skip to content

Commit

Permalink
PHP7 Project. Commit 13. Fixed more deprecated constructors, take 4.
Browse files Browse the repository at this point in the history
Most recent commit included from practiceprovider/php7-deprecated-constructors branch is:
0d82bf7
  • Loading branch information
Dev2-PracticeProvider authored and bradymiller committed Feb 6, 2016
1 parent 4a9c55b commit 8289682
Show file tree
Hide file tree
Showing 70 changed files with 128 additions and 128 deletions.
4 changes: 2 additions & 2 deletions contrib/forms/soap2/C_FormSOAP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class C_FormSOAP extends Controller {

var $template_dir;

function C_FormSOAP($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->template_mod = $template_mod;
$this->template_dir = dirname(__FILE__) . "/templates/";
$this->assign("FORM_ACTION", $GLOBALS['web_root']);
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/soap2/FormSOAP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class FormSOAP extends ORDataObject {
* Constructor sets all Form attributes to their default value
*/

function FormSOAP($id= "", $_prefix = "") {
function __construct($id= "", $_prefix = "") {
if (is_numeric($id)) {
$this->id = $id;
}
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_BillingContact.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class C_InsuranceCompany extends Controller {
var $template_mod;
var $icompanies;

function C_InsuranceCompany($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->icompanies = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_Document.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class C_Document extends Controller {
var $_config;
var $manual_set_owner=false; // allows manual setting of a document owner/service

function C_Document($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->documents = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_DocumentCategory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class C_DocumentCategory extends Controller {
var $tree;
var $link;

function C_DocumentCategory($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->document_categories = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_Hl7.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class C_Hl7 extends Controller {

function C_Hl7($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->template_mod = $template_mod;
$this->assign("STYLE", $GLOBALS['style']);
}
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_InsuranceCompany.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class C_InsuranceCompany extends Controller {
var $template_mod;
var $icompanies;

function C_InsuranceCompany($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->icompanies = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_InsuranceNumbers.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class C_InsuranceNumbers extends Controller {
var $providers;
var $insurance_numbers;

function C_InsuranceNumbers($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->providers = array();
$this->insurance_numbers = array();
$this->template_mod = $template_mod;
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_PatientFinder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class C_PatientFinder extends Controller {
var $template_mod;
var $_db;

function C_PatientFinder($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->_db = $GLOBALS['adodb']['db'];
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_Pharmacy.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class C_Pharmacy extends Controller {
var $template_mod;
var $pharmacies;

function C_Pharmacy($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->pharmacies = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_PracticeSettings.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class C_PracticeSettings extends Controller {

var $template_mod;

function C_PracticeSettings ($template_mod = "general") {
parent::Controller();
function __construct ($template_mod = "general") {
parent::__construct();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
$this->assign("TOP_ACTION", $GLOBALS['webroot']."/controller.php?" . "practice_settings" . "&");
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_Prescription.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class C_Prescription extends Controller {
var $is_faxing = false;
var $is_print_to_fax = false;

function C_Prescription($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();

$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions controllers/C_X12Partner.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class C_X12Partner extends Controller {
var $providers;
var $x12_partners;

function C_X12Partner($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->x12_partner = array();
$this->template_mod = $template_mod;
$this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
Expand Down
4 changes: 2 additions & 2 deletions interface/forms/ros/C_FormROS.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class C_FormROS extends Controller {

var $template_dir;

function C_FormROS($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
$this->template_mod = $template_mod;
$this->template_dir = dirname(__FILE__) . "/templates/ros/";
Expand Down
2 changes: 1 addition & 1 deletion interface/forms/ros/FormROS.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class FormROS extends ORDataObject {
* Constructor sets all Form attributes to their default value
*/

function FormROS($id= "", $_prefix = "") {
function __construct($id= "", $_prefix = "") {
if (is_numeric($id)) {
$this->id = $id;
}
Expand Down
4 changes: 2 additions & 2 deletions interface/forms/soap/C_FormSOAP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class C_FormSOAP extends Controller {

var $template_dir;

function C_FormSOAP($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$this->template_mod = $template_mod;
$this->template_dir = dirname(__FILE__) . "/templates/";
$this->assign("FORM_ACTION", $GLOBALS['web_root']);
Expand Down
2 changes: 1 addition & 1 deletion interface/forms/soap/FormSOAP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FormSOAP extends ORDataObject {
* Constructor sets all Form attributes to their default value
*/

function FormSOAP($id= "", $_prefix = "") {
function __construct($id= "", $_prefix = "") {
if (is_numeric($id)) {
$this->id = $id;
}
Expand Down
4 changes: 2 additions & 2 deletions interface/forms/vitals/C_FormVitals.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class C_FormVitals extends Controller {

var $template_dir;

function C_FormVitals($template_mod = "general") {
parent::Controller();
function __construct($template_mod = "general") {
parent::__construct();
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
$this->template_mod = $template_mod;
$this->template_dir = dirname(__FILE__) . "/templates/vitals/";
Expand Down
2 changes: 1 addition & 1 deletion interface/forms/vitals/FormVitals.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FormVitals extends ORDataObject {
* Constructor sets all Form attributes to their default value
*/

function FormVitals($id= "", $_prefix = "") {
function __construct($id= "", $_prefix = "") {
if ($id > 0) {
$this->id = $id;

Expand Down
2 changes: 1 addition & 1 deletion interface/super/rules/library/CdrHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CdrResults{
var $reminder_flag;
var $access_control;

function CdrResults($rule_id = "", $active_alert_flag = "", $passive_alert_flag = "", $patient_reminder_flag = "", $access_control = "") {
function __construct($rule_id = "", $active_alert_flag = "", $passive_alert_flag = "", $patient_reminder_flag = "", $access_control = "") {
$this->id = $rule_id;
$this->rule = getLabel($this->id,'clinical_rules');
$this->active_flag = $active_alert_flag;
Expand Down
2 changes: 1 addition & 1 deletion library/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ class Smarty
/**
* The class constructor.
*/
function Smarty()
function __construct()
{
$this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
: @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
Expand Down
2 changes: 1 addition & 1 deletion library/classes/Address.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Address extends ORDataObject{
/**
* Constructor sets all Address attributes to their default value
*/
function Address($id = "", $foreign_id = "") {
function __construct($id = "", $foreign_id = "") {
$this->id = $id;
$this->foreign_id = $foreign_id;
$this->_table = "addresses";
Expand Down
4 changes: 2 additions & 2 deletions library/classes/CategoryTree.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class CategoryTree extends Tree {
/*
* This just sits on top of the parent constructor, only a shell so that the _table var gets set
*/
function CategoryTree($root,$root_type = ROOT_TYPE_ID) {
function __construct($root,$root_type = ROOT_TYPE_ID) {
$this->_table = "categories";
parent::Tree($root,$root_type);
parent::__construct($root,$root_type);
}

function _get_categories_array($patient_id) {
Expand Down
2 changes: 1 addition & 1 deletion library/classes/Company.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Company extends ORDataObject{
/**
* Constructor sets all Company attributes to their default value
*/
function company($id = "", $foreign_id = "") {
function __construct($id = "", $foreign_id = "") {
$this->id = $id;
$this->name = "";
$this->foreign_id = $foreign_id;
Expand Down
4 changes: 2 additions & 2 deletions library/classes/ConfigTree.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class ConfigTree extends Tree {
/*
* This just sits on top of the parent constructor, only a shell so that the _table var gets set
*/
function ConfigTree($root,$root_type = ROOT_TYPE_ID) {
function __construct($root,$root_type = ROOT_TYPE_ID) {
$this->_table = "config";
parent::Tree($root,$root_type);
parent::__construct($root,$root_type);
}
}
?>
4 changes: 2 additions & 2 deletions library/classes/Controller.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Controller extends Smarty {
var $_state;
var $_args = array();

function Controller() {
parent::Smarty();
function __construct() {
parent::__construct();
$this->template_mod = "general";
$this->_current_action = "";
$this->_state = true;
Expand Down
2 changes: 1 addition & 1 deletion library/classes/CouchDB.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// +------------------------------------------------------------------------------+

class CouchDB {
function CouchDB() {
function __construct() {
$this->host = $GLOBALS['couchdb_host'];
$this->user = ($GLOBALS['couchdb_user'] != '') ? $GLOBALS['couchdb_user'] : null;
$this->pass = ($GLOBALS['couchdb_pass'] != '') ? $GLOBALS['couchdb_pass'] : null;
Expand Down
4 changes: 2 additions & 2 deletions library/classes/Document.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ class Document extends ORDataObject{
* Constructor sets all Document attributes to their default value
* @param int $id optional existing id of a specific document, if omitted a "blank" document is created
*/
function Document($id = "") {
function __construct($id = "") {
//call the parent constructor so we have a _db to work with
parent::ORDataObject();
parent::__construct();

//shore up the most basic ORDataObject bits
$this->id = $id;
Expand Down
2 changes: 1 addition & 1 deletion library/classes/InsuranceCompany.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class InsuranceCompany extends ORDataObject{
/**
* Constructor sets all Insurance Company attributes to their default value
*/
function InsuranceCompany($id = "", $prefix = "") {
function __construct($id = "", $prefix = "") {
$this->id = $id;
$this->name = "";
$this->_table = "insurance_companies";
Expand Down
2 changes: 1 addition & 1 deletion library/classes/InsuranceNumbers.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class InsuranceNumbers extends ORDataObject{
* Constructor sets all Insurance attributes to their default value
*/

function InsuranceNumbers ($id = "", $prefix = "") {
function __construct ($id = "", $prefix = "") {
$this->id = $id;
$this->_table = "insurance_numbers";
if ($id != "") {
Expand Down
4 changes: 2 additions & 2 deletions library/classes/Note.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class Note extends ORDataObject{
* Constructor sets all Note attributes to their default value
* @param int $id optional existing id of a specific note, if omitted a "blank" note is created
*/
function Note($id = "") {
function __construct($id = "") {
//call the parent constructor so we have a _db to work with
parent::ORDataObject();
parent::__construct();

//shore up the most basic ORDataObject bits
$this->id = $id;
Expand Down
2 changes: 1 addition & 1 deletion library/classes/NumberToText.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NumberToText {
var $capatalize;
var $and;

function NumberToText($number, $currency = false, $capatalize = false, $and = false) {
function __construct($number, $currency = false, $capatalize = false, $and = false) {
$this->number = $number;
$this->currency = $currency;
$this->capatalize = $capatalize;
Expand Down
2 changes: 1 addition & 1 deletion library/classes/OFX.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OFX {
/**
* Constructor sets all OFX attributes to their default value
*/
function OFX($ba = array()) {
function __construct($ba = array()) {
$this->billing_array = $ba;
$this->config = $GLOBALS['oer_config']['ofx'];
}
Expand Down
2 changes: 1 addition & 1 deletion library/classes/ORDataObject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ORDataObject {
var $_table;
var $_db;

function ORDataObject() {
function __construct() {
$this->_db = $GLOBALS['adodb']['db'];
}

Expand Down
4 changes: 2 additions & 2 deletions library/classes/PDF_Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class PDF_Label extends FPDF {
);

// Constructor
function PDF_Label($format, $unit='mm', $posX=1, $posY=1) {
function __construct($format, $unit='mm', $posX=1, $posY=1) {
if (is_array($format)) {
// Custom format
$Tformat = $format;
Expand All @@ -102,7 +102,7 @@ function PDF_Label($format, $unit='mm', $posX=1, $posY=1) {
$Tformat = $this->_Avery_Labels[$format];
}

parent::FPDF('P', $unit, $Tformat['paper-size']);
parent::__construct('P', $unit, $Tformat['paper-size']);
$this->_Metric_Doc = $unit;
$this->_Set_Format($Tformat);
$this->SetFont('Arial');
Expand Down
2 changes: 1 addition & 1 deletion library/classes/POSRef.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class POSRef {

var $pos_ref;

function POSRef($state = "") {
function __construct($state = "") {
$this->pos_ref = array();
$this->pos_ref = POSRef::init_pos();
$this->pos_ref = array_merge ($this->pos_ref,$this->state_overides($state));
Expand Down
4 changes: 2 additions & 2 deletions library/classes/PQRIXml.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

class PQRIXml extends XmlWriterOemr {

function PQRIXml($indent = ' ') {
parent::XmlWriterOemr($indent);
function __construct($indent = ' ') {
parent::__construct($indent);
}

function open_submission() {
Expand Down
2 changes: 1 addition & 1 deletion library/classes/Patient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Patient extends ORDataObject{
/**
* Constructor sets all Prescription attributes to their default value
*/
function Patient($id = "") {
function __construct($id = "") {
$this->id = $id;
$this->_table = "patient_data";
$this->pubpid = "";
Expand Down
Loading

0 comments on commit 8289682

Please sign in to comment.