HOR-3670
Fixed DynaformEditor class name
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class DynaformEditor extends WebResource
|
/**
|
||||||
|
* Created on 21/12/2007
|
||||||
|
* Dynaform - Dynaform
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package workflow.engine.classes
|
||||||
|
*/class DynaformEditor extends WebResource
|
||||||
{
|
{
|
||||||
|
|
||||||
private $isOldCopy = false;
|
private $isOldCopy = false;
|
||||||
@@ -36,7 +42,7 @@ class DynaformEditor extends WebResource
|
|||||||
* @param string $get
|
* @param string $get
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function dynaformEditor($get)
|
public function DynaformEditor($get)
|
||||||
{
|
{
|
||||||
$this->panelConf = array_merge($this->panelConf, $this->defaultConfig['Editor']);
|
$this->panelConf = array_merge($this->panelConf, $this->defaultConfig['Editor']);
|
||||||
//'title' => G::LoadTranslation('ID_DYNAFORM_EDITOR').' - ['.$this->title.']',
|
//'title' => G::LoadTranslation('ID_DYNAFORM_EDITOR').' - ['.$this->title.']',
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
* DynaformEditorAjax - DynaformEditorAjax class
|
* DynaformEditorAjax - DynaformEditorAjax class
|
||||||
*
|
*
|
||||||
* @package workflow.engine.classes
|
* @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')) {
|
if (file_exists(PATH_DYNAFORM . $file . '.html')) {
|
||||||
$copyHtml = implode('', file(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");
|
$fcopy = fopen(PATH_DYNAFORM . $file . '.xml', "w");
|
||||||
fwrite($fcopy, $copy);
|
fwrite($fcopy, $copy);
|
||||||
fclose($fcopy);
|
fclose($fcopy);
|
||||||
@@ -629,7 +629,7 @@
|
|||||||
//return(array('response'=>$tmp['useTmpCopy']));
|
//return(array('response'=>$tmp['useTmpCopy']));
|
||||||
if (isset($tmp['useTmpCopy'])) {
|
if (isset($tmp['useTmpCopy'])) {
|
||||||
//return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
|
//return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
|
||||||
if ($file !== dynaformEditor::_getFilename($file)) {
|
if ($file !== DynaformEditor::_getFilename($file)) {
|
||||||
// return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
|
// return(array('response'=>PATH_DYNAFORM . $file . '.xml'));
|
||||||
if (file_exists($xmlFile)) {
|
if (file_exists($xmlFile)) {
|
||||||
unlink($xmlFile);
|
unlink($xmlFile);
|
||||||
@@ -687,7 +687,7 @@
|
|||||||
($sp['ENABLETEMPLATE']!=$P['ENABLETEMPLATE']) ||
|
($sp['ENABLETEMPLATE']!=$P['ENABLETEMPLATE']) ||
|
||||||
($sp['MODE']!=$P['MODE']) */
|
($sp['MODE']!=$P['MODE']) */
|
||||||
/* Compare copies */
|
/* Compare copies */
|
||||||
$fileOrigen = dynaformEditor::_getFilename($file);
|
$fileOrigen = DynaformEditor::_getFilename($file);
|
||||||
$copy = implode('', file(PATH_DYNAFORM . $file . '.xml'));
|
$copy = implode('', file(PATH_DYNAFORM . $file . '.xml'));
|
||||||
$origen = implode('', file(PATH_DYNAFORM . $fileOrigen . '.xml'));
|
$origen = implode('', file(PATH_DYNAFORM . $fileOrigen . '.xml'));
|
||||||
$copyHTML = file_exists(PATH_DYNAFORM . $file . '.html') ? implode('', file(PATH_DYNAFORM . $file . '.html')) : false;
|
$copyHTML = file_exists(PATH_DYNAFORM . $file . '.html') ? implode('', file(PATH_DYNAFORM . $file . '.html')) : false;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ if (isset( $_GET['bpmn'] ) && $_GET['bpmn'] == '1') {
|
|||||||
$_SESSION['dynaform_editor'] = 'processmap';
|
$_SESSION['dynaform_editor'] = 'processmap';
|
||||||
}
|
}
|
||||||
|
|
||||||
$editor = new dynaformEditor( $_POST );
|
$editor = new DynaformEditor( $_POST );
|
||||||
$editor->file = $dynaform->getDynFilename();
|
$editor->file = $dynaform->getDynFilename();
|
||||||
$editor->home = PATH_DYNAFORM;
|
$editor->home = PATH_DYNAFORM;
|
||||||
$editor->title = $dynaform->getDynTitle();
|
$editor->title = $dynaform->getDynTitle();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ if (isset($_REQUEST['dynaformEditorParams'])) {
|
|||||||
$dynaform = new Dynaform();
|
$dynaform = new Dynaform();
|
||||||
$dynaform->load($_REQUEST['DYN_UID']);
|
$dynaform->load($_REQUEST['DYN_UID']);
|
||||||
|
|
||||||
$editor = new dynaformEditor(array());
|
$editor = new DynaformEditor(array());
|
||||||
$editor->file = $dynaform->getDynFilename();
|
$editor->file = $dynaform->getDynFilename();
|
||||||
$editor->home = PATH_DYNAFORM;
|
$editor->home = PATH_DYNAFORM;
|
||||||
$editor->title = $dynaform->getDynTitle();
|
$editor->title = $dynaform->getDynTitle();
|
||||||
|
|||||||
Reference in New Issue
Block a user