Fixed DynaformEditor class name
This commit is contained in:
David Callizaya
2017-08-11 14:15:27 -04:00
parent 41295d023d
commit 26102d8c52
4 changed files with 727 additions and 721 deletions

View File

@@ -1,6 +1,12 @@
<?php
class DynaformEditor extends WebResource
/**
* Created on 21/12/2007
* Dynaform - Dynaform
/**
*
* @package workflow.engine.classes
*/class DynaformEditor extends WebResource
{
private $isOldCopy = false;
@@ -36,7 +42,7 @@ class DynaformEditor extends WebResource
* @param string $get
* @return void
*/
public function dynaformEditor($get)
public function DynaformEditor($get)
{
$this->panelConf = array_merge($this->panelConf, $this->defaultConfig['Editor']);
//'title' => G::LoadTranslation('ID_DYNAFORM_EDITOR').' - ['.$this->title.']',

View File

@@ -31,7 +31,7 @@
* DynaformEditorAjax - DynaformEditorAjax class
*
* @package workflow.engine.classes
*/class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
*/class dynaformEditorAjax extends DynaformEditor implements iDynaformEditorAjax
{
/**
@@ -589,7 +589,7 @@
if (file_exists(PATH_DYNAFORM . $file . '.html')) {
$copyHtml = implode('', file(PATH_DYNAFORM . $file . '.html'));
}
$file = dynaformEditor::_getFilename($file);
$file = DynaformEditor::_getFilename($file);
$fcopy = fopen(PATH_DYNAFORM . $file . '.xml', "w");
fwrite($fcopy, $copy);
fclose($fcopy);
@@ -629,7 +629,7 @@
//return(array('response'=>$tmp['useTmpCopy']));
if (isset($tmp['useTmpCopy'])) {
//return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
if ($file !== dynaformEditor::_getFilename($file)) {
if ($file !== DynaformEditor::_getFilename($file)) {
// return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
if (file_exists($xmlFile)) {
unlink($xmlFile);
@@ -687,7 +687,7 @@
($sp['ENABLETEMPLATE']!=$P['ENABLETEMPLATE']) ||
($sp['MODE']!=$P['MODE']) */
/* Compare copies */
$fileOrigen = dynaformEditor::_getFilename($file);
$fileOrigen = DynaformEditor::_getFilename($file);
$copy = implode('', file(PATH_DYNAFORM . $file . '.xml'));
$origen = implode('', file(PATH_DYNAFORM . $fileOrigen . '.xml'));
$copyHTML = file_exists(PATH_DYNAFORM . $file . '.html') ? implode('', file(PATH_DYNAFORM . $file . '.html')) : false;

View File

@@ -80,7 +80,7 @@ if (isset( $_GET['bpmn'] ) && $_GET['bpmn'] == '1') {
$_SESSION['dynaform_editor'] = 'processmap';
}
$editor = new dynaformEditor( $_POST );
$editor = new DynaformEditor( $_POST );
$editor->file = $dynaform->getDynFilename();
$editor->home = PATH_DYNAFORM;
$editor->title = $dynaform->getDynTitle();

View File

@@ -15,7 +15,7 @@ if (isset($_REQUEST['dynaformEditorParams'])) {
$dynaform = new Dynaform();
$dynaform->load($_REQUEST['DYN_UID']);
$editor = new dynaformEditor(array());
$editor = new DynaformEditor(array());
$editor->file = $dynaform->getDynFilename();
$editor->home = PATH_DYNAFORM;
$editor->title = $dynaform->getDynTitle();