Complete the change of name for XmlFormField classes.
This commit is contained in:
David Callizaya
2017-08-14 15:53:48 -04:00
parent 21ba72af7f
commit 3b53ef4d9c
25 changed files with 195 additions and 384 deletions

View File

@@ -82,7 +82,7 @@ class PmBootstrap extends Bootstrap
$this->autoloader->registerClass('publisher', PATH_GULLIVER . 'class.publisher');
$this->autoloader->registerClass('templatePower', PATH_GULLIVER . 'class.templatePower');
$this->autoloader->registerClass('xmlDocument', PATH_GULLIVER . 'class.xmlDocument');
$this->autoloader->registerClass('XmlForm_Field_XmlMenu', PATH_GULLIVER . 'class.xmlMenu');
$this->autoloader->registerClass('XmlFormFieldXmlMenu', PATH_GULLIVER . 'class.xmlMenu');
$this->autoloader->registerClass('xmlform', PATH_GULLIVER . 'class.xmlform');
$this->autoloader->registerClass('xmlformExtension', PATH_GULLIVER . 'class.xmlformExtension');
@@ -96,7 +96,7 @@ class PmBootstrap extends Bootstrap
$this->autoloader->registerClass('headPublisher', PATH_GULLIVER . 'class.headPublisher');
$this->autoloader->registerClass('Xml_Node', PATH_GULLIVER . 'class.xmlDocument');
$this->autoloader->registerClass('Xml_document', PATH_GULLIVER . 'class.xmlDocument');
$this->autoloader->registerClass('XmlForm_Field_*', PATH_GULLIVER . 'class.xmlform');
$this->autoloader->registerClass('XmlFormField*', PATH_GULLIVER . 'class.xmlform');
$this->autoloader->registerClass('ServerConf', PATH_CORE . 'classes/class.serverConfiguration');
}

View File

@@ -117,7 +117,7 @@
$form = new Form($fileTmp, PATH_DYNAFORM, SYS_LANG, true);
//Navigation Bar
$form->fields = G::array_merges(array("__DYNAFORM_OPTIONS" => new XmlForm_Field_XmlMenu(new Xml_Node("__DYNAFORM_OPTIONS", "complete", "", array("type" => "xmlmenu", "xmlfile" => "gulliver/dynaforms_Options"
$form->fields = G::array_merges(array("__DYNAFORM_OPTIONS" => new XmlFormFieldXmlMenu(new Xml_Node("__DYNAFORM_OPTIONS", "complete", "", array("type" => "xmlmenu", "xmlfile" => "gulliver/dynaforms_Options"
)), SYS_LANG, PATH_XMLFORM, $form)
), $form->fields);
@@ -187,7 +187,7 @@
$form = new Form($fileTmp, PATH_DYNAFORM, SYS_LANG, true);
//Navigation Bar
$form->fields = G::array_merges(array("__DYNAFORM_OPTIONS" => new XmlForm_Field_XmlMenu(new Xml_Node("__DYNAFORM_OPTIONS", "complete", "", array("type" => "xmlmenu", "xmlfile" => "gulliver/dynaforms_Options"
$form->fields = G::array_merges(array("__DYNAFORM_OPTIONS" => new XmlFormFieldXmlMenu(new Xml_Node("__DYNAFORM_OPTIONS", "complete", "", array("type" => "xmlmenu", "xmlfile" => "gulliver/dynaforms_Options"
)), SYS_LANG, PATH_XMLFORM, $form)
), $form->fields);

View File

@@ -8,7 +8,7 @@
* @package workflow.engine.ProcessMaker
* @copyright COLOSA
*/
class PopupMenu extends form
class PopupMenu extends Form
{
var $type = 'PopupMenu';
var $theme = 'processmaker';
@@ -37,7 +37,7 @@ class PopupMenu extends form
$label = str_replace( "\n", ' ', $label );
$pmXmlNode = new Xml_Node( $f, 'complete', '', array ('label' => $label,'type' => 'popupOption','launch' => $tableId . '.showHideField("' . $f . '")'
) );
$this->fields[$f] = new XmlForm_Field_PopupOption( $pmXmlNode );
$this->fields[$f] = new XmlFormFieldPopupOption( $pmXmlNode );
$this->values[$f] = '';
}
}

View File

@@ -75,7 +75,7 @@ class PropelTable
public $name = 'pagedTable';
public $id = 'A1';
public $disableFooter = false;
//This attribute is used to set STYLES to groups of TD, using the field type "cellMark" (see XmlForm_Field_cellMark)
//This attribute is used to set STYLES to groups of TD, using the field type "cellMark" (see XmlFormFieldCellMark)
public $tdStyle = '';
public $tdClass = '';
//Config Save definition

View File

@@ -1,6 +1,6 @@
<?php
class ToolBar extends form
class ToolBar extends Form
{
public $type = 'toolbar';
public $align = 'left';

View File

@@ -1,10 +1,10 @@
<?php
/**
* Class XmlForm_Field_hours
* Class XmlFormFieldHours
*
*/
class XmlForm_Field_Hours extends XmlForm_Field_SimpleText
class XmlFormFieldHours extends XmlFormFieldSimpleText
{
public $size = 15;
public $maxLength = 64;

View File

@@ -1,11 +1,11 @@
<?php
/**
* XmlForm_Field_popupOption - XmlForm_Field_popupOption class
* XmlFormFieldpopupOption - XmlFormFieldPopupOption class
*
* @package workflow.engine.ProcessMaker
*/
class XmlForm_Field_PopupOption extends XmlForm_Field
class XmlFormFieldPopupOption extends XmlFormField
{
public $launch = '';

View File

@@ -3,7 +3,7 @@
/**
* Class XmlFormFieldTextareaPm
*/
class XmlFormFieldTextAreaPm extends XmlForm_Field
class XmlFormFieldTextAreaPm extends XmlFormField
{
public $rows = 12;
public $cols = 40;

View File

@@ -1,6 +1,6 @@
<?php
class XmlFormFieldTextPm extends XmlForm_Field_SimpleText
class XmlFormFieldTextPm extends XmlFormFieldSimpleText
{
public $size = 15;
public $maxLength = 64;

View File

@@ -6,7 +6,7 @@
*
* @package workflow.engine.ProcessMaker
*/
class XmlFormFieldToolBar extends XmlForm_Field
class XmlFormFieldToolBar extends XmlFormField
{
public $xmlfile = '';
public $type = 'toolbar';
@@ -15,7 +15,7 @@ class XmlFormFieldToolBar extends XmlForm_Field
public $withoutLabel = true;
/**
* Constructor of the class XmlForm_Field_ToolBar
* Constructor of the class XmlFormFieldToolBar
*
* @param string $xmlNode
* @param string $lang
@@ -25,7 +25,7 @@ class XmlFormFieldToolBar extends XmlForm_Field
*/
public function XmlFormFieldToolBar($xmlNode, $lang = 'en', $home = '', $owner = ' ')
{
parent::XmlForm_Field($xmlNode, $lang, $home, $owner);
parent::__construct($xmlNode, $lang, $home, $owner);
$this->home = $home;
}

View File

@@ -6,7 +6,7 @@
*
* @package workflow.engine.ProcessMaker
*/
class XmlFormFieldToolButton extends XmlForm_Field
class XmlFormFieldToolButton extends XmlFormField
{
public $file = '';
public $fileAlt = '';

View File

@@ -1,10 +1,10 @@
<?php
/**
* Class XmlForm_Field_CheckBoxTable
* Class XmlFormFieldCheckBoxTable
*
*/
class XmlForm_Field_CheckBoxTable extends XmlForm_Field_Checkbox
class XmlFormFieldCheckBoxTable extends XmlFormFieldCheckbox
{
/**

View File

@@ -73,7 +73,7 @@ $formValues = (Bootstrap::json_decode( $_POST['fields'] ));
$sFieldName = $_POST['fieldName'];
$sMasterField = '';
$sPath = PATH_DYNAFORM;
$G_FORM = new form( $sDynUid, $sPath );
$G_FORM = new Form( $sDynUid, $sPath );
$aux = array ();
$newValues = Bootstrap::json_decode( urlDecode( stripslashes( $_POST['form'] ) ) );

View File

@@ -47,7 +47,7 @@ if (isset( $_SESSION['CURRENT_PAGE_INITILIZATION'] )) {
eval( $_SESSION['CURRENT_PAGE_INITILIZATION'] );
}
$G_FORM = new form( G::getUIDName( urlDecode( $_POST['form'] ) ) );
$G_FORM = new Form( G::getUIDName( urlDecode( $_POST['form'] ) ) );
$G_FORM->id = urlDecode( $_POST['form'] );
$G_FORM->values = $_SESSION[$G_FORM->id];

View File

@@ -25,7 +25,7 @@ try {
global $RBAC;
$RBAC->requirePermissions( 'PM_LOGIN' );
// deprecated the class XmlForm_Field_Image is currently part of the class.xmlform.php package
// deprecated the class XmlFormFieldImage is currently part of the class.xmlform.php package
// the use of the external xmlfield_Image is highly discouraged
unset( $_SESSION['CURRENT_USER'] );