changing from private to public in classes with error

This commit is contained in:
Fernando Ontiveros
2012-07-12 20:39:07 -04:00
parent 4f8ca480b9
commit 6326cfdf53
4 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<?php <?php
/** /**
* class.dbtable.php * class.dbtable.php
* @package gulliver.system * @package gulliver.system
* *
* ProcessMaker Open Source Edition * ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc. * Copyright (C) 2004 - 2011 Colosa Inc.
@@ -85,7 +85,7 @@ class DBTable
$dberror = PEAR::raiseError(null, DB_ERROR_OBJECT_NOT_DEFINED, null, 'null', $dberror = PEAR::raiseError(null, DB_ERROR_OBJECT_NOT_DEFINED, null, 'null',
"You tried to call to a DBTable function without create an instance of DBConnection", "You tried to call to a DBTable function without create an instance of DBConnection",
'G_Error', true); 'G_Error', true);
DBconnection::logError( $dberror ); //DBconnection::logError( $dberror );
return $dberror; return $dberror;
} }
$this->is_new = true; $this->is_new = true;
@@ -254,7 +254,7 @@ class DBTable
$strValues = ""; $strValues = "";
if( defined('DB_ADAPTER')) if( defined('DB_ADAPTER'))
$DBEngine = DB_ADAPTER; $DBEngine = DB_ADAPTER;
else else
$DBEngine = 'mysql'; $DBEngine = 'mysql';
foreach( $this->Fields as $field => $val ) { foreach( $this->Fields as $field => $val ) {
$strFields .= $field . ","; $strFields .= $field . ",";
@@ -294,7 +294,7 @@ class DBTable
if(defined('DB_ADAPTER')) if(defined('DB_ADAPTER'))
$DBEngine = DB_ADAPTER; $DBEngine = DB_ADAPTER;
else else
$DBEngine = 'mysql'; $DBEngine = 'mysql';
foreach ( $this->table_keys as $k => $v ) $remainKeys[ $v ] = false; foreach ( $this->table_keys as $k => $v ) $remainKeys[ $v ] = false;
@@ -369,7 +369,7 @@ class DBTable
$remainKeys = array(); $remainKeys = array();
if(defined('DB_ADAPTER')) if(defined('DB_ADAPTER'))
$DBEngine = DB_ADAPTER; $DBEngine = DB_ADAPTER;
else else
$DBEngine = 'mysql'; $DBEngine = 'mysql';
foreach ( $this->table_keys as $k => $v ) $remainKeys[ $v ] = false; foreach ( $this->table_keys as $k => $v ) $remainKeys[ $v ] = false;

View File

@@ -84,7 +84,7 @@ class headPublisher {
* @return string * @return string
*/ */
private function __construct() { public function __construct() {
$this->addScriptFile ( "/js/maborak/core/maborak.js" ); $this->addScriptFile ( "/js/maborak/core/maborak.js" );
} }

View File

@@ -68,7 +68,7 @@ class RBAC
static private $instance = NULL; static private $instance = NULL;
private function __construct() { public function __construct() {
} }
/** /**

View File

@@ -18,7 +18,7 @@ class RestClient {
/** /**
* Private Constructor, sets default options * Private Constructor, sets default options
*/ */
private function __construct() { public function __construct() {
$this->curl = curl_init(); $this->curl = curl_init();
curl_setopt($this->curl,CURLOPT_RETURNTRANSFER,true); curl_setopt($this->curl,CURLOPT_RETURNTRANSFER,true);
curl_setopt($this->curl,CURLOPT_AUTOREFERER,true); // This make sure will follow redirects curl_setopt($this->curl,CURLOPT_AUTOREFERER,true); // This make sure will follow redirects