This commit is contained in:
Paulis
2019-08-02 15:57:22 -04:00
parent 279e251a62
commit d3e632a4db
22 changed files with 58 additions and 55 deletions

View File

@@ -93,7 +93,7 @@ class DBConnection
* @return string
*
*/
public function DBConnection($strServer = DB_HOST, $strUser = DB_USER, $strPwd = DB_PASS, $strDB = DB_NAME, $type = DB_ADAPTER, $strPort = 0, $errorLevel = 2)
public function __construct($strServer = DB_HOST, $strUser = DB_USER, $strPwd = DB_PASS, $strDB = DB_NAME, $type = DB_ADAPTER, $strPort = 0, $errorLevel = 2)
{
$this->errorLevel = $errorLevel;
if ($type == null) {

View File

@@ -47,7 +47,7 @@ class DBRecordSet
* @param string $intResult Database recordset default value = false
* @return void
*/
function DBRecordSet ($intResult = null)
public function __construct($intResult = null)
{
$this->SetTo($intResult);
}

View File

@@ -52,7 +52,7 @@ class DBSession
* @return void
*
*/
function DBSession ($objConnection = null, $strDBName = '')
public function __construct($objConnection = null, $strDBName = '')
{
if ($strDBName != '') {
$strDBName = $objConnection->db->_db;

View File

@@ -53,12 +53,15 @@ class DBTable
/**
* Initiate a database conecction using default values
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param object $objConnection conecction string
*
* @param object $objConnection
* @param string $strTable
* @param array $arrKeys
*
* @return void
*/
public function dBTable($objConnection = null, $strTable = "", $arrKeys = array('UID'))
public function __construct($objConnection = null, $strTable = "", $arrKeys = ['UID'])
{
$this->_dbc = null;
$this->_dbses = null;

View File

@@ -77,7 +77,7 @@ class G_Error extends PEAR_Error
*
* @see PEAR_Error
*/
public function G_Error ($code = G_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null)
public function __construct($code = G_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null)
{
if (is_int($code)) {
$this->PEAR_Error('G Error: ' . G_Error::errorMessage($code), $code, $mode, $level, $debuginfo);

View File

@@ -25,13 +25,13 @@ class InputFilter
/**
* Constructor for inputFilter class. Only first parameter is required.
* @access constructor
* @param Array $tagsArray - list of user-defined tags
* @param Array $attrArray - list of user-defined attributes
* @param array $tagsArray - list of user-defined tags
* @param array $attrArray - list of user-defined attributes
* @param int $tagsMethod - 0= allow just user-defined, 1= allow all but user-defined
* @param int $attrMethod - 0= allow just user-defined, 1= allow all but user-defined
* @param int $xssAuto - 0= only auto clean essentials, 1= allow clean blacklisted tags/attr
*/
public function inputFilter($tagsArray = array(), $attrArray = array(), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1)
public function __construct($tagsArray = [], $attrArray = [], $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1)
{
// make sure user defined arrays are in lowercase
for ($i = 0; $i < count($tagsArray); $i++) {

View File

@@ -44,7 +44,7 @@ class objectTemplate extends Smarty
* @return void
*/
function objectTemplate ($templateFile)
public function __construct($templateFile)
{
$this->template_dir = PATH_TPL;
$this->compile_dir = PATH_SMARTY_C;

View File

@@ -49,14 +49,14 @@ class Table
public $_contexto = '';
/**
* Set conecction using default values
* Set connection using default values
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param string $objConnection connection string
*
* @return void
* @access public
*/
public function Table ($objConnection = null)
public function __construct($objConnection = null)
{
$this->SetTo($objConnection);
}

View File

@@ -25,9 +25,9 @@ class PmTree extends Xml_Node
*
* @param array $xmlnode default value NULL
*
* @return none
* @return void
*/
public function PmTree($xmlnode = null)
public function __construct($xmlnode = null)
{
if (!isset($xmlnode)) {
return;

View File

@@ -48,9 +48,9 @@ class WebResource
* @param string $uri
* @param string $post
*
* @return none
* @return void
*/
function WebResource ($uri, $post)
public function __construct($uri, $post)
{
$this->_uri = $uri;
if (isset($post['function']) && $post['function'] != '') {

View File

@@ -61,9 +61,9 @@ class XmlFormFieldXmlMenu extends XmlFormField
* @param string $home default value ''
* @param string $owner
*
* @return none
* @return void
*/
public function XmlFormFieldXmlMenu ($xmlNode, $lang = 'en', $home = '', $owner = null)
public function __construct($xmlNode, $lang = 'en', $home = '', $owner = null)
{
parent::__construct($xmlNode, $lang, $home, $owner);
$this->home = $home;

View File

@@ -17,13 +17,13 @@ class xmlformTemplate extends Smarty
/**
* Function xmlformTemplate
*
* @author David S. Callizaya S. <davidsantos@colosa.com>
* @access public
* @param string form
* @param string templateFile
*
* @return string
* @access public
*/
public function xmlformTemplate (&$form, $templateFile)
public function __construct(&$form, $templateFile)
{
$this->template_dir = PATH_XMLFORM;
$this->compile_dir = PATH_SMARTY_C;

View File

@@ -174,7 +174,7 @@ class Padl
*
* @access private
* */
public function padl()
public function __construct()
{
# check to see if the class has been secured
$this->_check_secure();

View File

@@ -6,15 +6,13 @@
*/
class ReplacementLogo
{
//var $dir='';
/**
* This function is the constructor of the ReplacementLogo class
* param
*
* @return void
*/
public function replacementLogo ()
public function __construct()
{
}

View File

@@ -13,7 +13,7 @@ class XMLConnection
* @param string $file
* @return void
*/
public function XMLConnection($file)
public function __construct($file)
{
$this->xmldoc = new Xml_Document();
$this->xmldoc->parseXmlFile($file);

View File

@@ -14,9 +14,10 @@ class XMLResult
* XMLResult
*
* @param array $result
*
* @return void
*/
public function XMLResult ($result = array())
public function __construct($result = [])
{
$this->result = $result;
$this->cursor = 0;

View File

@@ -21,9 +21,10 @@ class XmlFormFieldToolBar extends XmlFormField
* @param string $lang
* @param string $home
* @param string $owner
*
* @return void
*/
public function XmlFormFieldToolBar($xmlNode, $lang = 'en', $home = '', $owner = ' ')
public function __construct($xmlNode, $lang = 'en', $home = '', $owner = ' ')
{
parent::__construct($xmlNode, $lang, $home, $owner);
$this->home = $home;

View File

@@ -19,7 +19,7 @@ require_once ("CURLMessage.php");
class FormatedMessage extends CURLMessage
{
public function FormatedMessage ()
public function __construct()
{
parent::__construct();
}

View File

@@ -22,7 +22,7 @@ class JsonMessage extends FormatedMessage
/**
* Call the parent Curl initialization and set the type of the message
*/
public function JsonMessage ()
public function __construct()
{
parent::__construct();
$this->type = "json";

View File

@@ -22,7 +22,7 @@ class RestMessage extends SimpleMessage
/**
* Call the parent Curl initialization and set the type of the message
*/
public function RestMessage ()
public function __construct()
{
parent::__construct();
$this->type = "rest";

View File

@@ -19,7 +19,7 @@ require_once ("CURLMessage.php");
class SimpleMessage extends CURLMessage
{
public function SimpleMessage ()
public function __construct()
{
parent::__construct();
}

View File

@@ -22,7 +22,7 @@ class XmlMessage extends FormatedMessage
/**
* Call the parent Curl initialization and set the type of the message
*/
public function XmlMessage ()
public function __construct()
{
parent::__construct();
$this->type = "xml";