Fix class name of DynaformEditorAjax
This commit is contained in:
David Callizaya
2017-08-11 14:25:52 -04:00
parent 26102d8c52
commit 1e940d1de0
4 changed files with 6 additions and 30 deletions

View File

@@ -42,7 +42,7 @@
* @param string $get * @param string $get
* @return void * @return void
*/ */
public function DynaformEditor($get) public function __construct($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.']',
@@ -117,7 +117,7 @@
$openDoc->parseXmlFile($fileName); $openDoc->parseXmlFile($fileName);
} }
//$form = new Form( $this->file , $this->home, SYS_LANG, true ); //$form = new Form( $this->file , $this->home, SYS_LANG, true );
$Properties = dynaformEditorAjax::get_properties($A, $this->dyn_uid); $Properties = DynaformEditorAjax::get_properties($A, $this->dyn_uid);
/* Start Block: Prepare the XMLDB connection */ /* Start Block: Prepare the XMLDB connection */
define('DB_XMLDB_HOST', PATH_DYNAFORM . $this->file . '.xml'); define('DB_XMLDB_HOST', PATH_DYNAFORM . $this->file . '.xml');
define('DB_XMLDB_USER', ''); define('DB_XMLDB_USER', '');

View File

@@ -1,29 +1,5 @@
<?php <?php
/**
* class.dynaformEditor.php
*
* @package workflow.engine.classes
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
/** /**
* Created on 21/12/2007 * Created on 21/12/2007
* Dynaform - Dynaform * Dynaform - Dynaform
@@ -31,7 +7,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
{ {
/** /**
@@ -40,7 +16,7 @@
* @param var $post * @param var $post
* @return void * @return void
*/ */
public function dynaformEditorAjax($post) public function __construct($post)
{ {
$this->_run($post); $this->_run($post);
} }

View File

@@ -36,4 +36,4 @@ if (! isset( $_DBArray )) {
$_DBArray = array (); $_DBArray = array ();
} }
$oDynaformEditorAjax = new dynaformEditorAjax( $_POST ); $oDynaformEditorAjax = new DynaformEditorAjax( $_POST );

View File

@@ -282,7 +282,7 @@ $_SESSION['_DBArray'] = $_DBArray;
// Additions to javascript // Additions to javascript
if (isset($sType) && $sType === 'javascript') { if (isset($sType) && $sType === 'javascript') {
$sCode = urlencode($pmeCode); $sCode = urlencode($pmeCode);
$editor = new dynaformEditorAjax($_POST); $editor = new DynaformEditorAjax($_POST);
$editor->set_javascript($A, $fieldName, $sCode); $editor->set_javascript($A, $fieldName, $sCode);
} }