PMC-1038
This commit is contained in:
@@ -93,7 +93,7 @@ class DBConnection
|
|||||||
* @return string
|
* @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;
|
$this->errorLevel = $errorLevel;
|
||||||
if ($type == null) {
|
if ($type == null) {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class DBRecordSet
|
|||||||
* @param string $intResult Database recordset default value = false
|
* @param string $intResult Database recordset default value = false
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function DBRecordSet ($intResult = null)
|
public function __construct($intResult = null)
|
||||||
{
|
{
|
||||||
$this->SetTo($intResult);
|
$this->SetTo($intResult);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class DBSession
|
|||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function DBSession ($objConnection = null, $strDBName = '')
|
public function __construct($objConnection = null, $strDBName = '')
|
||||||
{
|
{
|
||||||
if ($strDBName != '') {
|
if ($strDBName != '') {
|
||||||
$strDBName = $objConnection->db->_db;
|
$strDBName = $objConnection->db->_db;
|
||||||
|
|||||||
@@ -53,12 +53,15 @@ class DBTable
|
|||||||
/**
|
/**
|
||||||
* Initiate a database conecction using default values
|
* Initiate a database conecction using default values
|
||||||
*
|
*
|
||||||
* @author Fernando Ontiveros Lira <fernando@colosa.com>
|
|
||||||
* @access public
|
* @access public
|
||||||
* @param object $objConnection conecction string
|
*
|
||||||
|
* @param object $objConnection
|
||||||
|
* @param string $strTable
|
||||||
|
* @param array $arrKeys
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function dBTable($objConnection = null, $strTable = "", $arrKeys = array('UID'))
|
public function __construct($objConnection = null, $strTable = "", $arrKeys = ['UID'])
|
||||||
{
|
{
|
||||||
$this->_dbc = null;
|
$this->_dbc = null;
|
||||||
$this->_dbses = null;
|
$this->_dbses = null;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class G_Error extends PEAR_Error
|
|||||||
*
|
*
|
||||||
* @see 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)) {
|
if (is_int($code)) {
|
||||||
$this->PEAR_Error('G Error: ' . G_Error::errorMessage($code), $code, $mode, $level, $debuginfo);
|
$this->PEAR_Error('G Error: ' . G_Error::errorMessage($code), $code, $mode, $level, $debuginfo);
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ class InputFilter
|
|||||||
/**
|
/**
|
||||||
* Constructor for inputFilter class. Only first parameter is required.
|
* Constructor for inputFilter class. Only first parameter is required.
|
||||||
* @access constructor
|
* @access constructor
|
||||||
* @param Array $tagsArray - list of user-defined tags
|
* @param array $tagsArray - list of user-defined tags
|
||||||
* @param Array $attrArray - list of user-defined attributes
|
* @param array $attrArray - list of user-defined attributes
|
||||||
* @param int $tagsMethod - 0= allow just user-defined, 1= allow all but user-defined
|
* @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 $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
|
* @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
|
// make sure user defined arrays are in lowercase
|
||||||
for ($i = 0; $i < count($tagsArray); $i++) {
|
for ($i = 0; $i < count($tagsArray); $i++) {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class objectTemplate extends Smarty
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function objectTemplate ($templateFile)
|
public function __construct($templateFile)
|
||||||
{
|
{
|
||||||
$this->template_dir = PATH_TPL;
|
$this->template_dir = PATH_TPL;
|
||||||
$this->compile_dir = PATH_SMARTY_C;
|
$this->compile_dir = PATH_SMARTY_C;
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ class Table
|
|||||||
public $_contexto = '';
|
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
|
* @param string $objConnection connection string
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function Table ($objConnection = null)
|
public function __construct($objConnection = null)
|
||||||
{
|
{
|
||||||
$this->SetTo($objConnection);
|
$this->SetTo($objConnection);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ class PmTree extends Xml_Node
|
|||||||
*
|
*
|
||||||
* @param array $xmlnode default value NULL
|
* @param array $xmlnode default value NULL
|
||||||
*
|
*
|
||||||
* @return none
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function PmTree($xmlnode = null)
|
public function __construct($xmlnode = null)
|
||||||
{
|
{
|
||||||
if (!isset($xmlnode)) {
|
if (!isset($xmlnode)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -48,9 +48,9 @@ class WebResource
|
|||||||
* @param string $uri
|
* @param string $uri
|
||||||
* @param string $post
|
* @param string $post
|
||||||
*
|
*
|
||||||
* @return none
|
* @return void
|
||||||
*/
|
*/
|
||||||
function WebResource ($uri, $post)
|
public function __construct($uri, $post)
|
||||||
{
|
{
|
||||||
$this->_uri = $uri;
|
$this->_uri = $uri;
|
||||||
if (isset($post['function']) && $post['function'] != '') {
|
if (isset($post['function']) && $post['function'] != '') {
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ class XmlFormFieldXmlMenu extends XmlFormField
|
|||||||
* @param string $home default value ''
|
* @param string $home default value ''
|
||||||
* @param string $owner
|
* @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);
|
parent::__construct($xmlNode, $lang, $home, $owner);
|
||||||
$this->home = $home;
|
$this->home = $home;
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ class xmlformTemplate extends Smarty
|
|||||||
/**
|
/**
|
||||||
* Function xmlformTemplate
|
* Function xmlformTemplate
|
||||||
*
|
*
|
||||||
* @author David S. Callizaya S. <davidsantos@colosa.com>
|
|
||||||
* @access public
|
|
||||||
* @param string form
|
* @param string form
|
||||||
* @param string templateFile
|
* @param string templateFile
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function xmlformTemplate (&$form, $templateFile)
|
public function __construct(&$form, $templateFile)
|
||||||
{
|
{
|
||||||
$this->template_dir = PATH_XMLFORM;
|
$this->template_dir = PATH_XMLFORM;
|
||||||
$this->compile_dir = PATH_SMARTY_C;
|
$this->compile_dir = PATH_SMARTY_C;
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class Padl
|
|||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
* */
|
* */
|
||||||
public function padl()
|
public function __construct()
|
||||||
{
|
{
|
||||||
# check to see if the class has been secured
|
# check to see if the class has been secured
|
||||||
$this->_check_secure();
|
$this->_check_secure();
|
||||||
|
|||||||
@@ -6,15 +6,13 @@
|
|||||||
*/
|
*/
|
||||||
class ReplacementLogo
|
class ReplacementLogo
|
||||||
{
|
{
|
||||||
|
|
||||||
//var $dir='';
|
|
||||||
/**
|
/**
|
||||||
* This function is the constructor of the ReplacementLogo class
|
* This function is the constructor of the ReplacementLogo class
|
||||||
* param
|
* param
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function replacementLogo ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class XMLConnection
|
|||||||
* @param string $file
|
* @param string $file
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function XMLConnection($file)
|
public function __construct($file)
|
||||||
{
|
{
|
||||||
$this->xmldoc = new Xml_Document();
|
$this->xmldoc = new Xml_Document();
|
||||||
$this->xmldoc->parseXmlFile($file);
|
$this->xmldoc->parseXmlFile($file);
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ class XMLResult
|
|||||||
* XMLResult
|
* XMLResult
|
||||||
*
|
*
|
||||||
* @param array $result
|
* @param array $result
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function XMLResult ($result = array())
|
public function __construct($result = [])
|
||||||
{
|
{
|
||||||
$this->result = $result;
|
$this->result = $result;
|
||||||
$this->cursor = 0;
|
$this->cursor = 0;
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ class XmlFormFieldToolBar extends XmlFormField
|
|||||||
* @param string $lang
|
* @param string $lang
|
||||||
* @param string $home
|
* @param string $home
|
||||||
* @param string $owner
|
* @param string $owner
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function XmlFormFieldToolBar($xmlNode, $lang = 'en', $home = '', $owner = ' ')
|
public function __construct($xmlNode, $lang = 'en', $home = '', $owner = ' ')
|
||||||
{
|
{
|
||||||
parent::__construct($xmlNode, $lang, $home, $owner);
|
parent::__construct($xmlNode, $lang, $home, $owner);
|
||||||
$this->home = $home;
|
$this->home = $home;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ require_once ("CURLMessage.php");
|
|||||||
class FormatedMessage extends CURLMessage
|
class FormatedMessage extends CURLMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
public function FormatedMessage ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class JsonMessage extends FormatedMessage
|
|||||||
/**
|
/**
|
||||||
* Call the parent Curl initialization and set the type of the message
|
* Call the parent Curl initialization and set the type of the message
|
||||||
*/
|
*/
|
||||||
public function JsonMessage ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->type = "json";
|
$this->type = "json";
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class RestMessage extends SimpleMessage
|
|||||||
/**
|
/**
|
||||||
* Call the parent Curl initialization and set the type of the message
|
* Call the parent Curl initialization and set the type of the message
|
||||||
*/
|
*/
|
||||||
public function RestMessage ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->type = "rest";
|
$this->type = "rest";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ require_once ("CURLMessage.php");
|
|||||||
class SimpleMessage extends CURLMessage
|
class SimpleMessage extends CURLMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
public function SimpleMessage ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class XmlMessage extends FormatedMessage
|
|||||||
/**
|
/**
|
||||||
* Call the parent Curl initialization and set the type of the message
|
* Call the parent Curl initialization and set the type of the message
|
||||||
*/
|
*/
|
||||||
public function XmlMessage ()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->type = "xml";
|
$this->type = "xml";
|
||||||
|
|||||||
Reference in New Issue
Block a user