HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once
This commit is contained in:
committed by
davidcallizaya
parent
d72b7aa561
commit
60efcf7ac7
@@ -35,10 +35,7 @@ try {
|
||||
die();
|
||||
break;
|
||||
}
|
||||
require_once 'classes/model/OutputDocument.php';
|
||||
require_once 'classes/model/ObjectPermission.php';
|
||||
require_once 'classes/model/Step.php';
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
$oOutputDocument = new OutputDocument();
|
||||
$fields = $oOutputDocument->load( $_POST['OUT_DOC_UID'] );
|
||||
$oOutputDocument->remove( $_POST['OUT_DOC_UID'] );
|
||||
@@ -46,18 +43,18 @@ try {
|
||||
$oStep->removeStep( 'OUTPUT_DOCUMENT', $_POST['OUT_DOC_UID'] );
|
||||
$oOP = new ObjectPermission();
|
||||
$oOP->removeByObject( 'OUTPUT', $_POST['OUT_DOC_UID'] );
|
||||
//refresh dbarray with the last change in outputDocument
|
||||
//refresh dbarray with the last change in outputDocument
|
||||
$oMap = new processMap();
|
||||
$oCriteria = $oMap->getOutputDocumentsCriteria( $fields['PRO_UID'] );
|
||||
|
||||
$result = new stdClass();
|
||||
|
||||
$result = new stdClass();
|
||||
$result->success = true;
|
||||
$result->msg = G::LoadTranslation( 'ID_OUTPUTDOCUMENT_REMOVED' );
|
||||
} catch (Exception $e) {
|
||||
$result = new stdClass();
|
||||
$result = new stdClass();
|
||||
$result->success = false;
|
||||
$result->msg = $e->getMessage();
|
||||
}
|
||||
|
||||
|
||||
print G::json_encode( $result );
|
||||
|
||||
|
||||
@@ -55,8 +55,7 @@ try {
|
||||
}
|
||||
|
||||
$type = isset( $aFields['OUT_DOC_TYPE'] ) ? $aFields['OUT_DOC_TYPE'] : 'HTML';
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
switch ($type) {
|
||||
|
||||
@@ -45,23 +45,7 @@ try {
|
||||
}
|
||||
$aFields['OUT_DOC_TYPE'] = 'HTML';
|
||||
$enabledJavaBridge = false;
|
||||
/**
|
||||
* Temporally Disabled, because we are not using JRXML output doc type by now
|
||||
* G::LoadClass ('javaBridgePM');
|
||||
* if ( class_exists ( 'javaBridgePM' ) ) {
|
||||
* $JBPM = new JavaBridgePM();
|
||||
* try {
|
||||
* $JBPM->checkJavaExtension();
|
||||
* $util = new Java("com.processmaker.util.pmutils");
|
||||
* $enabledJavaBridge = true;
|
||||
* } catch ( Exception $e ) {
|
||||
*
|
||||
* }
|
||||
* //$util->setInputPath( JAVATEST_PATH );
|
||||
* //$util->setOutputPath( JAVATEST_PATH );
|
||||
* }
|
||||
*/
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
if (! $enabledJavaBridge) {
|
||||
$xmlform = 'outputdocs/outputdocs_Properties';
|
||||
|
||||
@@ -55,7 +55,7 @@ try {
|
||||
$aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = G::decrypt( $aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'], $_GET['OUT_DOC_UID'] );
|
||||
$aFields['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = G::decrypt( $aFields['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'], $_GET['OUT_DOC_UID'] );
|
||||
}
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
switch ($type) {
|
||||
case 'HTML':
|
||||
@@ -63,16 +63,7 @@ try {
|
||||
break;
|
||||
case 'JRXML':
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'outputdocs/outputdocs_Properties', '', $aFields, '../outputdocs/outputdocs_Save' );
|
||||
/*
|
||||
// $G_PUBLISH->AddContent('xmlform', 'xmlform', 'outputdocs/outputdocsDynaformList', '', $aFields , '../outputdocs/outputdocs_Save');
|
||||
require_once 'classes/model/Process.php';
|
||||
G::LoadClass( 'processMap');
|
||||
$sProcessUID = $aFields['PRO_UID'];
|
||||
$oProcess = new Process();
|
||||
$oProcessMap = new ProcessMap();
|
||||
$aFields = $oProcess->load($sProcessUID);
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'dynaforms/dynaforms_ShortList', $oProcessMap->getDynaformsCriteria($sProcessUID), $aFields);
|
||||
*/
|
||||
|
||||
break;
|
||||
case 'ACROFORM':
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'outputdocs/outputdocs_Properties', '', $aFields, '../outputdocs/outputdocs_Save' );
|
||||
|
||||
@@ -39,10 +39,6 @@ try {
|
||||
|
||||
//default:
|
||||
|
||||
|
||||
require_once 'classes/model/OutputDocument.php';
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
$oOutputDocument = new OutputDocument();
|
||||
|
||||
if (isset( $_POST['form'] ))
|
||||
@@ -69,7 +65,7 @@ try {
|
||||
if ((isset( $aData['OUT_DOC_TYPE'] )) && ($aData['OUT_DOC_TYPE'] == 'JRXML')) {
|
||||
$dynaformUid = $aData['DYN_UID'];
|
||||
$outDocUid = $oOutputDocument->create( $aData );
|
||||
G::LoadClass( 'javaBridgePM' );
|
||||
|
||||
$jbpm = new JavaBridgePM();
|
||||
print $jbpm->generateJrxmlFromDynaform( $outDocUid, $dynaformUid, 'classic' );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user