Changes done for PhpDoc
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.ArrayPeer.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -31,7 +32,7 @@ include_once 'classes/model/Application.php';
|
||||
/**
|
||||
* Base static class for performing query and update operations on the 'APPLICATION' table.
|
||||
*
|
||||
* @package workflow.classes.model
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
abstract class ArrayBasePeer {
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.BasePeer.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -33,7 +34,7 @@ include_once 'classes/model/Application.php';
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
abstract class GulliverBasePeer {
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.Installer.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -32,7 +33,7 @@
|
||||
|
||||
/**
|
||||
* Processmaker Installer
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author maborak
|
||||
* @copyright 2008 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.Installer_mssql.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -32,7 +33,7 @@
|
||||
|
||||
/**
|
||||
* Processmaker Installer_mssql
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author
|
||||
* @copyright 2008 COLOSA
|
||||
*/
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
+--------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @package workflow.classes
|
||||
**/
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class archive
|
||||
{
|
||||
/**
|
||||
@@ -349,6 +349,7 @@ class archive
|
||||
|
||||
/**
|
||||
* This class is derived from the class archive, is imployed to use files .tar
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
*/
|
||||
class tar_file extends archive
|
||||
@@ -509,6 +510,7 @@ class tar_file extends archive
|
||||
|
||||
/**
|
||||
* This class is derived of the class archive, is employed to use archives .gzip
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
*/
|
||||
class gzip_file extends tar_file
|
||||
@@ -564,6 +566,7 @@ class gzip_file extends tar_file
|
||||
/**
|
||||
*
|
||||
* This class is derived from the class archive, is employed to use files .bzip
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
*/
|
||||
class bzip_file extends tar_file
|
||||
@@ -619,6 +622,7 @@ class bzip_file extends tar_file
|
||||
|
||||
/**
|
||||
* This class is derived from the class archive, is imployed to use files .zip
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class zip_file extends archive
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.calendar.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -27,7 +28,7 @@
|
||||
* @created 2010-03-22
|
||||
*
|
||||
* @author Hugo Loza <hugo@colosa.com> 2010-03-22
|
||||
* @package workflow.classes
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
require_once ( "classes/model/CalendarDefinition.php" );
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/**
|
||||
* class.case.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -21,8 +22,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
require_once ("classes/model/Application.php");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.cli.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2011 Colosa Inc.
|
||||
@@ -24,6 +25,9 @@
|
||||
* @author Alexandre Rosenfeld <alexandre@colosa.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class CLI {
|
||||
public static $tasks = array();
|
||||
public static $currentTask = NULL;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.configuration.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -45,7 +46,7 @@ require_once 'classes/model/Configuration.php';
|
||||
*
|
||||
* @copyright 2007 COLOSA
|
||||
* @version Release: @package_version@
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class Configurations // extends Configuration
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.dashboards.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
/**
|
||||
* Dashboards - Dashboard class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Julio Cesar Laura Avenda<64>o
|
||||
* @copyright 2007 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.dates.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,8 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
/*
|
||||
* Created on 21/01/2008
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @Author: Erik Amaru Ortiz <erik@colosa.com>
|
||||
* @Description:This is a class for load all additional connections; if exist in a particular proccess
|
||||
* @Date: 15-05-2008
|
||||
* Author: Erik Amaru Ortiz <erik@colosa.com>
|
||||
* Description:This is a class for load all additional connections; if exist in a particular proccess
|
||||
* Date: 15-05-2008
|
||||
*
|
||||
*
|
||||
* class.dbConnections.php
|
||||
*
|
||||
* Email bugs/suggestions to erik@colosa.com
|
||||
*
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
require_once 'model/DbSource.php';
|
||||
@@ -20,6 +19,7 @@ require_once 'model/Content.php';
|
||||
*
|
||||
*
|
||||
* @copyright 2008 Colosa
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
*/
|
||||
class dbConnections
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.derivation.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -38,7 +39,7 @@
|
||||
|
||||
/**
|
||||
* derivation - derivation class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.dynaFormField.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -20,15 +21,14 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*
|
||||
*/
|
||||
|
||||
G::LoadClass('xmlDb');
|
||||
|
||||
/**
|
||||
* Dynaform Field - DynaformField class
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class DynaFormField extends DBTable
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.dynaformEditor.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,8 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -38,6 +37,10 @@ require_once('classes/model/Process.php');
|
||||
require_once('classes/model/Dynaform.php');
|
||||
G::LoadClass('xmlDb');
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class dynaformEditor extends WebResource
|
||||
{
|
||||
private $isOldCopy = false;
|
||||
@@ -347,6 +350,8 @@ interface iDynaformEditorAjax
|
||||
|
||||
/**
|
||||
* DynaformEditorAjax - DynaformEditorAjax class
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.groupUser.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -31,7 +32,7 @@
|
||||
|
||||
/**
|
||||
* GroupUser - GroupUser class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Julio Cesar Laura Avendaño
|
||||
* @copyright 2007 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.groups.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -28,7 +29,7 @@ require_once 'classes/model/Users.php';
|
||||
|
||||
/**
|
||||
* Groups - Groups class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @copyright 2007 COLOSA
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @brief insert mail into the spool database
|
||||
*
|
||||
* @package Tomahawk_Mail
|
||||
* @author Ian K Armstrong <ika@[REMOVE_THESE_CAPITALS]openmail.cc>
|
||||
* @copyright Copyright (c) 2007, Ian K Armstrong
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU Public License
|
||||
* @link http://www.openmail.cc
|
||||
*
|
||||
* @category web_mail
|
||||
* @subpackage send
|
||||
* @filesource
|
||||
* @version
|
||||
*
|
||||
* @file class.insert.php
|
||||
*
|
||||
*/
|
||||
|
||||
require_once ( "classes/model/AppMessage.php" );
|
||||
|
||||
class insert
|
||||
{
|
||||
private $db_spool;
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* construct of insert
|
||||
*
|
||||
* @param string $pPRO_UID
|
||||
* @return void
|
||||
*/
|
||||
function __construct($db_spool=array())
|
||||
{
|
||||
if(count($db_spool)>0)
|
||||
$db_spool = $this->db_insert($db_spool);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* returnStatus
|
||||
*
|
||||
* @return $this->status;
|
||||
*/
|
||||
public function returnStatus()
|
||||
{
|
||||
return $this->status;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* db_insert
|
||||
*
|
||||
* @param array $db_spool
|
||||
* @return string $sUID;
|
||||
*/
|
||||
public function db_insert($db_spool)
|
||||
{
|
||||
$sUID = G::generateUniqueID();
|
||||
$spool = new AppMessage();
|
||||
$spool->setAppMsgUid($sUID);
|
||||
$spool->setMsgUid($db_spool['msg_uid']);
|
||||
$spool->setAppUid($db_spool['app_uid']);
|
||||
$spool->setDelIndex($db_spool['del_index']);
|
||||
$spool->setAppMsgType($db_spool['app_msg_type']);
|
||||
$spool->setAppMsgSubject($db_spool['app_msg_subject']);
|
||||
$spool->setAppMsgFrom($db_spool['app_msg_from']);
|
||||
$spool->setAppMsgTo($db_spool['app_msg_to']);
|
||||
$spool->setAppMsgBody($db_spool['app_msg_body']);
|
||||
$spool->setAppMsgDate(date('Y-m-d H:i:s'));
|
||||
$spool->setAppMsgCc($db_spool['app_msg_cc']);
|
||||
$spool->setAppMsgBcc($db_spool['app_msg_bcc']);
|
||||
$spool->setappMsgAttach($db_spool['app_msg_attach']);
|
||||
$spool->setAppMsgTemplate($db_spool['app_msg_template']);
|
||||
$spool->setAppMsgStatus($db_spool['app_msg_status']);
|
||||
|
||||
if(!$spool->validate()) {
|
||||
$errors = $spool->getValidationFailures();
|
||||
$this->status = 'error';
|
||||
|
||||
foreach($errors as $key => $value) {
|
||||
echo "Validation error - " . $value->getMessage($key) . "\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
//echo "Saving - validation ok\n";
|
||||
$this->status = 'success';
|
||||
$spool->save();
|
||||
}
|
||||
return $sUID;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // end of class
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* class.javaBridgePM.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -21,14 +21,16 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined ( 'JAVA_BRIDGE_PATH') ) define ( 'JAVA_BRIDGE_PATH', 'JavaBridgePM' );
|
||||
if ( ! defined ( 'JAVA_BRIDGE_PORT') ) define ( 'JAVA_BRIDGE_PORT', '8080' );
|
||||
if ( ! defined ( 'JAVA_BRIDGE_HOST') ) define ( 'JAVA_BRIDGE_HOST', '127.0.0.1' );
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class JavaBridgePM
|
||||
{
|
||||
var $JavaBridgeDir = JAVA_BRIDGE_PATH;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.jrml.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -26,7 +27,7 @@
|
||||
|
||||
/**
|
||||
* Jrml - Jrml class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Maborak <maborak@maborak.com>
|
||||
* @copyright 2008 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.languages.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -31,7 +32,7 @@ G::LoadClass('xmlDb');
|
||||
|
||||
/**
|
||||
* languages - Languages class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class languages {
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
| only if this copyright statement is not removed
|
||||
+--------------------------------------------------*/
|
||||
/**
|
||||
* @LastModification 30/05/2008
|
||||
* LastModification 30/05/2008
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class NET
|
||||
@@ -501,7 +501,7 @@ class NET
|
||||
|
||||
/**
|
||||
* This function gets an error
|
||||
* @param
|
||||
* param
|
||||
* @return string
|
||||
*/
|
||||
function getErrno()
|
||||
@@ -511,7 +511,7 @@ class NET
|
||||
|
||||
/**
|
||||
* This function gets an error message
|
||||
* @param
|
||||
* param
|
||||
* @return string
|
||||
*/
|
||||
function getErrmsg()
|
||||
@@ -521,6 +521,9 @@ class NET
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class Stat
|
||||
{
|
||||
public $stutus;
|
||||
|
||||
@@ -1,266 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @brief Package spool files for sending
|
||||
*
|
||||
* @package Tomahawk_Mail
|
||||
* @author Ian K Armstrong <ika@[REMOVE_THESE_CAPITALS]openmail.cc>
|
||||
* @copyright Copyright (c) 2007, Ian K Armstrong
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU Public License
|
||||
* @link http://www.openmail.cc
|
||||
*
|
||||
* @category web_mail
|
||||
* @subpackage mail
|
||||
* @filesource
|
||||
* @version
|
||||
*
|
||||
* @file class.package.php
|
||||
*
|
||||
*/
|
||||
|
||||
class package
|
||||
{
|
||||
private $headers;
|
||||
private $message;
|
||||
private $charset;
|
||||
private $emailboundary;
|
||||
private $debug;
|
||||
private $fileData;
|
||||
private $max_line_length;
|
||||
private $with_html;
|
||||
|
||||
/**
|
||||
* This function is the constructor of the package class
|
||||
* @param array $fileData
|
||||
* @return void
|
||||
*/
|
||||
function __construct($fileData=array())
|
||||
{
|
||||
$this->fileData = array();
|
||||
$this->debug = 1;
|
||||
$this->emailboundary = 'Part-'.md5(uniqid(microtime()));
|
||||
$this->charset = 'UTF-8'; //'ISO-8859-1'
|
||||
$this->headers = '';
|
||||
$this->message = '';
|
||||
$this->with_html = false;
|
||||
$this->max_line_length = '70';
|
||||
|
||||
if(count($fileData)>0) {
|
||||
$this->fileData = $fileData;
|
||||
$this->addHeaders();
|
||||
$this->compileBody();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns the header
|
||||
* @param
|
||||
* @return string
|
||||
*/
|
||||
public function returnHeader()
|
||||
{
|
||||
return $this->headers;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns the body
|
||||
* @param
|
||||
* @return string
|
||||
*/
|
||||
public function returnBody()
|
||||
{
|
||||
return $this->message;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns an error
|
||||
* @param string $error
|
||||
* @return string
|
||||
*/
|
||||
private function returnErrors($error)
|
||||
{
|
||||
if($this->debug>0) return $error;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function puts a headers (to, cc, etc)
|
||||
* @param
|
||||
* @return void
|
||||
*/
|
||||
private function addHeaders()
|
||||
{
|
||||
$header = '';
|
||||
|
||||
(strlen($this->fileData['from_name'])>0)
|
||||
? $header .= 'From: '."{$this->fileData['from_name']}".' <'."{$this->fileData['from_email']}>"."\r\n"
|
||||
: $header .= 'From: '."<{$this->fileData['from_email']}>"."\r\n";
|
||||
|
||||
// to
|
||||
if(strlen($this->fileData['to'])>0)
|
||||
{
|
||||
$to = "{$this->fileData['to']}";
|
||||
$header .= 'To: '.$to."\r\n";
|
||||
|
||||
}
|
||||
|
||||
// cc
|
||||
if(strlen($this->fileData['cc'])>0)
|
||||
{
|
||||
$cc = "{$this->fileData['cc']}";
|
||||
$header .= 'Cc: '.$cc."\r\n";
|
||||
|
||||
}
|
||||
|
||||
$header .= 'X-Sender: '."{$this->fileData['from_email']}"."\r\n";
|
||||
$header .= 'Return-Path: <'."{$this->fileData['from_email']}".'>'."\r\n";
|
||||
$header .= 'Errors-To: '."{$this->fileData['from_email']}"."\r\n";
|
||||
$header .= 'Reply-To: '."{$this->fileData['from_email']}"."\r\n";
|
||||
|
||||
if(!empty($this->fileData['reference']))
|
||||
{
|
||||
$header .= 'In-Reply-To: <'."{$this->fileData['reference']}".'>'."\r\n";
|
||||
$header .= 'References: <'."{$this->fileData['reference']}".'>'."\r\n";
|
||||
|
||||
}
|
||||
|
||||
$header .= 'Message-Id: <'.md5(uniqid(rand())).':'
|
||||
.str_replace(' ','_', "{$this->fileData['from_name']}")
|
||||
.'@'."{$this->fileData['domain']}".'>'."\r\n";
|
||||
|
||||
$header .= 'X-Mailer: ProcessMaker <http://www.processmaker.com>'."\r\n";
|
||||
$header .= 'X-Priority: 3'."\r\n";
|
||||
$header .= 'Date: '."{$this->fileData['date']}"."\r\n";
|
||||
$header .= 'Subject: '."{$this->fileData['subject']}"."\r\n";
|
||||
$header .= 'MIME-Version: 1.0'."\r\n";
|
||||
|
||||
(count($this->fileData['attachments'])>0)
|
||||
? $header .= 'Content-Type: multipart/mixed; '."\r\n\t".'boundary="'.$this->emailboundary.'"'."\r\n"
|
||||
: $header .= 'Content-Type: multipart/alternative; '."\r\n\t".'boundary="'.$this->emailboundary.'"'."\r\n";
|
||||
|
||||
$header .= 'This is a multi-part message in MIME format'."\r\n";
|
||||
|
||||
$this->headers = $header;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function adds a file (to, cc, etc)
|
||||
* @param string $data
|
||||
* @return string
|
||||
*/
|
||||
private function addAttachment($data='')
|
||||
{
|
||||
$attach_this = '';
|
||||
|
||||
if(trim($data)!='')
|
||||
{
|
||||
list($file,$name,$type) = explode('|',$data);
|
||||
|
||||
if(is_readable($file))
|
||||
{
|
||||
// attachment header
|
||||
$attachment_header = '--'.$this->emailboundary."\r\n";
|
||||
$attachment_header .= 'Content-type: '.$type.'; name="'.$name.'"'."\r\n";
|
||||
$attachment_header .= 'Content-transfer-encoding: base64'."\r\n";
|
||||
$attachment_header .= 'Content-disposition: attachment; filename="'.$name.'"'."\r\n\r\n";
|
||||
|
||||
// read, encode, chunk split
|
||||
$file_content = file_get_contents($file);
|
||||
$file_content = base64_encode($file_content);
|
||||
$file_content = chunk_split($file_content,70);
|
||||
|
||||
// add content and header
|
||||
$attach_this = $attachment_header.$file_content."\r\n";
|
||||
|
||||
} else { $this->returnErrors($file.' not readable in addAttachment');}
|
||||
|
||||
} else { $this->returnErrors('missing data in addAttachment');}
|
||||
|
||||
return $attach_this;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function fixs body
|
||||
* @param string $data
|
||||
* @return string
|
||||
*/
|
||||
private function fixbody()
|
||||
{
|
||||
$lines = array();
|
||||
$b = '';
|
||||
$body = "{$this->fileData['body']}";
|
||||
$body = str_replace("\r", "\n", str_replace("\r\n", "\n", $body));
|
||||
$lines = explode("\n", $body);
|
||||
|
||||
foreach($lines as $line)
|
||||
{
|
||||
// wrap lines
|
||||
$line = wordwrap($line, $this->max_line_length, "\r\n");
|
||||
|
||||
// leading dot problem
|
||||
if(substr($line, 0,1) == '.') $line = '.' . $line;
|
||||
|
||||
$b .= $line."\r\n";
|
||||
}
|
||||
return $b;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function compiles message
|
||||
* @param
|
||||
* @return void
|
||||
*/
|
||||
private function compileBody()
|
||||
{
|
||||
$comp = '';
|
||||
$body = $this->fixbody();
|
||||
|
||||
// text
|
||||
$comp .= '--'.$this->emailboundary."\r\n";
|
||||
$comp .= 'Content-Type: text/plain; charset='.$this->charset."\r\n";
|
||||
$comp .= 'Content-Transfer-Encoding: 8bit'."\r\n\r\n";
|
||||
$comp .= "$body"."\r\n\r\n";
|
||||
|
||||
// html
|
||||
if($this->with_html)
|
||||
{
|
||||
$temp = file_get_contents('template.html');
|
||||
$temp = str_replace("\n", "", str_replace("\r", "", $temp));
|
||||
|
||||
$comp .= '--'.$this->emailboundary."\r\n";
|
||||
$comp .= 'Content-Type: text/html; charset='.$this->charset."\r\n";
|
||||
$comp .= 'Content-Transfer-Encoding: 8bit'."\r\n\r\n";
|
||||
|
||||
$body = str_replace('[>content<]',"$body",$temp);
|
||||
$comp .= "$body"."\r\n\r\n";
|
||||
|
||||
}
|
||||
|
||||
// attachments
|
||||
/*
|
||||
if(count($this->fileData['attachments'])>0)
|
||||
{
|
||||
foreach($this->fileData['attachments'] as $data)
|
||||
{
|
||||
$comp .= $this->addAttachment($data);
|
||||
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
$comp .= '--'.$this->emailboundary.'--'."\r\n";
|
||||
|
||||
$this->message = $comp;
|
||||
|
||||
}
|
||||
|
||||
} // end of class
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.plugin.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,11 +21,9 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
|
||||
require_once ( 'class.pluginRegistry.php');
|
||||
|
||||
define ( 'G_PLUGIN_CLASS', 1 );
|
||||
@@ -42,6 +41,9 @@ define ( 'PM_CASE_DOCUMENT_LIST_ARR', 1010 );
|
||||
define ( 'PM_LOGIN', 1011 );
|
||||
define ( 'PM_UPLOAD_DOCUMENT_BEFORE', 1012 );
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class menuDetail {
|
||||
var $sNamespace;
|
||||
@@ -49,9 +51,9 @@ class menuDetail {
|
||||
var $sFilename;
|
||||
/**
|
||||
* This function is the constructor of the menuDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sMenuId
|
||||
* @param string $sFilename
|
||||
* param string $sNamespace
|
||||
* param string $sMenuId
|
||||
* param string $sFilename
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sMenuId, $sFilename ) {
|
||||
@@ -60,15 +62,19 @@ class menuDetail {
|
||||
$this->sFilename = $sFilename;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class toolbarDetail {
|
||||
var $sNamespace;
|
||||
var $sToolbarId;
|
||||
var $sFilename;
|
||||
/**
|
||||
* This function is the constructor of the menuDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sMenuId
|
||||
* @param string $sFilename
|
||||
* param string $sNamespace
|
||||
* param string $sMenuId
|
||||
* param string $sFilename
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sToolbarId, $sFilename ) {
|
||||
@@ -77,6 +83,9 @@ class toolbarDetail {
|
||||
$this->sFilename = $sFilename;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class dashboardPage {
|
||||
var $sNamespace;
|
||||
var $sPage;
|
||||
@@ -84,8 +93,8 @@ class toolbarDetail {
|
||||
var $sIcon;
|
||||
/**
|
||||
* This function is the constructor of the dashboardPage class
|
||||
* @param string $sNamespace
|
||||
* @param string $sPage
|
||||
* param string $sNamespace
|
||||
* param string $sPage
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sPage, $sName, $sIcon ) {
|
||||
@@ -96,13 +105,16 @@ class toolbarDetail {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class cssFile {
|
||||
var $sNamespace;
|
||||
var $sCssFile;
|
||||
/**
|
||||
* This function is the constructor of the dashboardPage class
|
||||
* @param string $sNamespace
|
||||
* @param string $sPage
|
||||
* param string $sNamespace
|
||||
* param string $sPage
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sCssFile) {
|
||||
@@ -110,7 +122,9 @@ class cssFile {
|
||||
$this->sCssFile = $sCssFile;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class triggerDetail {
|
||||
var $sNamespace;
|
||||
var $sTriggerId;
|
||||
@@ -118,9 +132,9 @@ class triggerDetail {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the triggerDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sTriggerId
|
||||
* @param string $sTriggerName
|
||||
* param string $sNamespace
|
||||
* param string $sTriggerId
|
||||
* param string $sTriggerName
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sTriggerId, $sTriggerName ) {
|
||||
@@ -129,7 +143,9 @@ class triggerDetail {
|
||||
$this->sTriggerName = $sTriggerName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class folderDetail {
|
||||
var $sNamespace;
|
||||
var $sFolderId;
|
||||
@@ -137,9 +153,9 @@ class folderDetail {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the folderDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sFolderId
|
||||
* @param string $sFolderName
|
||||
* param string $sNamespace
|
||||
* param string $sFolderId
|
||||
* param string $sFolderName
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sFolderId, $sFolderName ) {
|
||||
@@ -148,7 +164,9 @@ class folderDetail {
|
||||
$this->sFolderName = $sFolderName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class stepDetail {
|
||||
var $sNamespace;
|
||||
var $sStepId;
|
||||
@@ -158,11 +176,11 @@ class stepDetail {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the stepDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sStepId
|
||||
* @param string $sStepName
|
||||
* @param string $sStepTitle
|
||||
* @param string $sSetupStepPage
|
||||
* param string $sNamespace
|
||||
* param string $sStepId
|
||||
* param string $sStepName
|
||||
* param string $sStepTitle
|
||||
* param string $sSetupStepPage
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sStepId, $sStepName, $sStepTitle, $sSetupStepPage ) {
|
||||
@@ -173,7 +191,9 @@ class stepDetail {
|
||||
$this->sSetupStepPage = $sSetupStepPage;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class redirectDetail {
|
||||
var $sNamespace;
|
||||
var $sRoleCode;
|
||||
@@ -181,9 +201,9 @@ class redirectDetail {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the redirectDetail class
|
||||
* @param string $sNamespace
|
||||
* @param string $sRoleCode
|
||||
* @param string $sPathMethod
|
||||
* param string $sNamespace
|
||||
* param string $sRoleCode
|
||||
* param string $sPathMethod
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sRoleCode, $sPathMethod ) {
|
||||
@@ -192,7 +212,9 @@ class redirectDetail {
|
||||
$this->sPathMethod = $sPathMethod;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class folderData {
|
||||
var $sProcessUid;
|
||||
var $sProcessTitle;
|
||||
@@ -204,13 +226,13 @@ class folderData {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the folderData class
|
||||
* @param string $sProcessUid
|
||||
* @param string $sProcessTitle
|
||||
* @param string $sApplicationUid
|
||||
* @param string $sApplicationTitle
|
||||
* @param string $sUserUid
|
||||
* @param string $sUserLogin
|
||||
* @param string $sUserFullName
|
||||
* param string $sProcessUid
|
||||
* param string $sProcessTitle
|
||||
* param string $sApplicationUid
|
||||
* param string $sApplicationTitle
|
||||
* param string $sUserUid
|
||||
* param string $sUserLogin
|
||||
* param string $sUserFullName
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sProcessUid, $sProcessTitle, $sApplicationUid, $sApplicationTitle, $sUserUid, $sUserLogin = '', $sUserFullName ='') {
|
||||
@@ -223,7 +245,9 @@ class folderData {
|
||||
$this->sUserFullName = $sUserFullName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class uploadDocumentData {
|
||||
var $sApplicationUid;
|
||||
var $sUserUid;
|
||||
@@ -235,12 +259,12 @@ class uploadDocumentData {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the uploadDocumentData class
|
||||
* @param string $sApplicationUid
|
||||
* @param string $sUserUid
|
||||
* @param string $sFilename
|
||||
* @param string $sFileTitle
|
||||
* @param string $sDocumentUid
|
||||
* @param integer $iVersion
|
||||
* param string $sApplicationUid
|
||||
* param string $sUserUid
|
||||
* param string $sFilename
|
||||
* param string $sFileTitle
|
||||
* param string $sDocumentUid
|
||||
* param integer $iVersion
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sApplicationUid, $sUserUid, $sFilename, $sFileTitle, $sDocumentUid, $iVersion = 1 ) {
|
||||
@@ -253,6 +277,9 @@ class uploadDocumentData {
|
||||
$this->iVersion = $iVersion;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class loginInfo {
|
||||
var $lName;
|
||||
var $lPassword;
|
||||
@@ -260,9 +287,9 @@ class loginInfo {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the loginInfo class
|
||||
* @param string $lName
|
||||
* @param string $lPassword
|
||||
* @param string $lSession
|
||||
* param string $lName
|
||||
* param string $lPassword
|
||||
* param string $lSession
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $lName, $lPassword, $lSession ) {
|
||||
@@ -271,7 +298,9 @@ class loginInfo {
|
||||
$this->lSession = $lSession;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class caseSchedulerPlugin {
|
||||
var $sNamespace;
|
||||
var $sActionId;
|
||||
@@ -282,12 +311,12 @@ class caseSchedulerPlugin {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the caseSchedulerPlugin class
|
||||
* @param string $sNamespace
|
||||
* @param string $sActionId
|
||||
* @param string $sActionForm
|
||||
* @param string $sActionSave
|
||||
* @param string $sActionExecute
|
||||
* $param string $sActionGetFields
|
||||
* param string $sNamespace
|
||||
* param string $sActionId
|
||||
* param string $sActionForm
|
||||
* param string $sActionSave
|
||||
* param string $sActionExecute
|
||||
* param string $sActionGetFields
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sActionId, $sActionForm, $sActionSave, $sActionExecute, $sActionGetFields ) {
|
||||
@@ -299,6 +328,9 @@ class caseSchedulerPlugin {
|
||||
$this->sActionGetFields = $sActionGetFields;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class taskExtendedProperty {
|
||||
var $sNamespace;
|
||||
var $sPage;
|
||||
@@ -306,10 +338,10 @@ class taskExtendedProperty {
|
||||
var $sIcon;
|
||||
/**
|
||||
* This function is the constructor of the taskExtendedProperty class
|
||||
* @param string $sNamespace
|
||||
* @param string $sPage
|
||||
* @param string $sName
|
||||
* @param string $sIcon
|
||||
* param string $sNamespace
|
||||
* param string $sPage
|
||||
* param string $sName
|
||||
* param string $sIcon
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $sNamespace, $sPage, $sName, $sIcon ) {
|
||||
@@ -319,7 +351,9 @@ class taskExtendedProperty {
|
||||
$this->sIcon = $sIcon;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class PMPlugin {
|
||||
var $sNamespace;
|
||||
var $sClassName;
|
||||
@@ -357,7 +391,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can register the dashboard
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function registerDashboard( ) {
|
||||
@@ -368,7 +402,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can register the report
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function registerReport( ) {
|
||||
@@ -378,7 +412,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can register the pm's function
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function registerPmFunction( ) {
|
||||
@@ -388,7 +422,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can set the company's logo
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function setCompanyLogo( $filename ) {
|
||||
@@ -398,7 +432,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can register the pm's function
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function redirectLogin( $role, $pathMethod ) {
|
||||
@@ -418,7 +452,7 @@ class PMPlugin {
|
||||
|
||||
/**
|
||||
* With this function we can register the steps
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function registerStep($sStepId, $sStepName, $sStepTitle, $sSetupStepPage = '') {
|
||||
@@ -531,7 +565,7 @@ class PMPlugin {
|
||||
}
|
||||
/**
|
||||
* With this function we can register a Case Scheduler Plugin/Addon
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function registerCaseSchedulerPlugin($sActionId, $sActionForm, $sActionSave, $sActionExecute, $sActionGetFields) {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.pluginRegistry.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,9 +21,11 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class pluginDetail {
|
||||
@@ -66,6 +69,10 @@ class pluginDetail {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class PMPluginRegistry {
|
||||
private $_aPluginDetails = array();
|
||||
private $_aPlugins = array();
|
||||
@@ -87,14 +94,14 @@ class PMPluginRegistry {
|
||||
|
||||
/**
|
||||
* This function is the constructor of the PMPluginRegistry class
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
private function __construct() {}
|
||||
|
||||
/**
|
||||
* This function is instancing to this class
|
||||
* @param
|
||||
* param
|
||||
* @return object
|
||||
*/
|
||||
function &getSingleton() {
|
||||
@@ -106,7 +113,7 @@ class PMPluginRegistry {
|
||||
|
||||
/**
|
||||
* This function generates a storable representation of a value
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function serializeInstance() {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.pmFunctions.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -21,8 +22,8 @@
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
* /**
|
||||
* @package workflow.ProcessMaker
|
||||
*
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.pmScript.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -83,7 +84,7 @@ if (file_exists($dir)){
|
||||
/**
|
||||
* PMScript - PMScript class
|
||||
* @copyright 2007 COLOSA
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class PMScript
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.popupMenu.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -26,7 +27,7 @@
|
||||
|
||||
/**
|
||||
* popupMenu - popupMenu class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @copyright COLOSA
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* class.processMap.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -21,8 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.ProcessMaker
|
||||
*
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
G::LoadThirdParty('pear/json', 'class.json');
|
||||
G::LoadClass('groups');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.processes.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -20,8 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.ProcessMaker
|
||||
*
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
|
||||
require_once 'classes/model/Content.php';
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.propelTable.php
|
||||
* @package workflow.gulliver.system
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
||||
* 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
|
||||
@@ -30,10 +31,10 @@
|
||||
|
||||
/**
|
||||
* Class pagedTable
|
||||
* @author David S. Callizaya S. <davidsantos@colosa.com>
|
||||
* @package workflow.gulliver.system
|
||||
* @author David S. Callizaya S. <davidsantos@colosa.com> *
|
||||
* @access public
|
||||
* @dependencies TemplatePower Form XmlForm
|
||||
* @package workflow.gulliver.system
|
||||
* dependencies TemplatePower Form XmlForm
|
||||
*/
|
||||
|
||||
class propelTable
|
||||
@@ -197,7 +198,7 @@ class propelTable
|
||||
* Function setupFromXmlform
|
||||
*
|
||||
* @author David S. Callizaya S. <davidsantos@colosa.com>
|
||||
* @editedby Hugo Loza <hugo@colosa.com>
|
||||
* editedby Hugo Loza <hugo@colosa.com>
|
||||
* @access public
|
||||
* @parameter string xmlForm
|
||||
* @return string
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.replacementLogo.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,8 +21,10 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class replacementLogo {
|
||||
@@ -29,7 +32,7 @@ class replacementLogo {
|
||||
//var $dir='';
|
||||
/**
|
||||
* This function is the constructor of the replacementLogo class
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function replacementLogo() {
|
||||
@@ -78,7 +81,7 @@ class replacementLogo {
|
||||
*
|
||||
* @name getNameLogo
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function getNameLogo($usrUid) {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.report.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -26,7 +27,7 @@
|
||||
|
||||
/**
|
||||
* Report - Report class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Everth S. Berrios Morales
|
||||
* @copyright 2008 COLOSA
|
||||
*/
|
||||
@@ -39,7 +40,7 @@ class Report {
|
||||
*
|
||||
* @name generatedReport1
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return object
|
||||
*/
|
||||
function generatedReport1()
|
||||
@@ -257,7 +258,7 @@ class Report {
|
||||
*
|
||||
* @name generatedReport2
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return object
|
||||
*/
|
||||
function generatedReport2()
|
||||
@@ -672,7 +673,7 @@ class Report {
|
||||
*
|
||||
* @name generatedReport4
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return object
|
||||
*/
|
||||
function generatedReport4()
|
||||
@@ -961,7 +962,7 @@ class Report {
|
||||
*
|
||||
* @name getAvailableReports
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function getAvailableReports()
|
||||
@@ -975,7 +976,7 @@ class Report {
|
||||
*
|
||||
* @name reportsPatch
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.reportTables.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -27,7 +28,7 @@ G::LoadClass('case');
|
||||
|
||||
/**
|
||||
* ReportTables - Report tables class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Julio Cesar Laura Avenda<64>o
|
||||
* @copyright 2007 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.serverConfiguration.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
||||
@@ -20,8 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.ProcessMaker
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -29,6 +28,7 @@
|
||||
* @author Hugo Loza
|
||||
* @copyright 2010 COLOSA
|
||||
* @license GNU Affero General Public License
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class serverConf {
|
||||
private $_aProperties = array ();
|
||||
@@ -61,7 +61,7 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* This function is instancing to this object
|
||||
* @param
|
||||
* param
|
||||
* @return object
|
||||
*/
|
||||
function &getSingleton() {
|
||||
@@ -76,7 +76,7 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* This function generates a storable representation of this obejct
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function serializeInstance() {
|
||||
@@ -100,7 +100,7 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* This will save the object in the specified file (defined as a property of this class)
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -148,7 +148,7 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* Used to have a record of succesful logins to the system (total and by WS)
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function sucessfulLogin() {
|
||||
@@ -194,7 +194,7 @@ class serverConf {
|
||||
/**
|
||||
* Check only if the server address or server name has changed,
|
||||
* to send another beat in next minute.
|
||||
* @param
|
||||
* param
|
||||
* @return boolean
|
||||
*/
|
||||
function checkIfHostNameHasChanged() {
|
||||
@@ -212,7 +212,7 @@ class serverConf {
|
||||
/**
|
||||
* Will return a list of all WS in this system and their related information.
|
||||
* @uses getWorkspaceInfo
|
||||
* @param
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function getWSList() {
|
||||
@@ -277,8 +277,8 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* Will list the plugins of the system
|
||||
* @param
|
||||
* @retun array
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function getPluginsList() {
|
||||
return $this->pluginsA;
|
||||
@@ -319,7 +319,7 @@ class serverConf {
|
||||
|
||||
/**
|
||||
* Will reset all the logins' count
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function resetLogins() {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.Sessions.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -25,7 +26,7 @@
|
||||
require_once 'classes/model/Session.php';
|
||||
/**
|
||||
* Sessions - Sessions class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Everth S. Berrios Morales
|
||||
* @copyright 2008 COLOSA
|
||||
*/
|
||||
@@ -242,7 +243,7 @@ class Sessions {
|
||||
*
|
||||
* @name deleteTmpfile
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
private function deleteTmpfile(){
|
||||
|
||||
@@ -1,302 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @brief smtp class to send emails. Requires an email server.
|
||||
*
|
||||
* @package Tomahawk_Mail
|
||||
* @author Ian K Armstrong <ika@[REMOVE_THESE_CAPITALS]openmail.cc>
|
||||
* @copyright Copyright (c) 2007, Ian K Armstrong
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU Public License
|
||||
* @link http://www.openmail.cc
|
||||
*
|
||||
* @category web_mail
|
||||
* @subpackage mail
|
||||
* @filesource
|
||||
* @version
|
||||
*
|
||||
* @file class.smtp.php
|
||||
*
|
||||
*/
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// smtp authentication
|
||||
//-------------------------------------------------------------
|
||||
// setSmtpAuthentication($sAuth)
|
||||
// setUsername($sName)
|
||||
// setPassword($sPass)
|
||||
//-------------------------------------------------------------
|
||||
|
||||
class smtp
|
||||
{
|
||||
private $mail_server;
|
||||
private $port;
|
||||
private $return_path;
|
||||
private $envelope_to;
|
||||
private $status;
|
||||
private $headers;
|
||||
private $body;
|
||||
private $log;
|
||||
private $with_auth;
|
||||
private $username;
|
||||
private $password;
|
||||
|
||||
/**
|
||||
* Function __construct
|
||||
* Constructor of the class
|
||||
* @return void
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
$this->status = false;
|
||||
$this->with_auth = false; // change to 'true' to use smtp authentication
|
||||
$this->username = ''; // needed for smtp authentication
|
||||
$this->password = ''; // needed for smtp authentication
|
||||
$this->mail_server = @gethostbyaddr('127.0.0.1');
|
||||
$this->port = 25;
|
||||
$this->return_path = '';
|
||||
$this->envelope_to = array();
|
||||
$this->headers = '';
|
||||
$this->body = '';
|
||||
$this->log = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setServer
|
||||
* This sets the server used for sending mail
|
||||
* @param string $sServer
|
||||
* @return void
|
||||
*/
|
||||
public function setServer($sServer)
|
||||
{
|
||||
if(($sAux = @gethostbyaddr($sServer)))
|
||||
$sServer = $sAux;
|
||||
$this->mail_server = $sServer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setPort
|
||||
* This sets the port used for sending mail
|
||||
* @param string $iPort
|
||||
* @return void
|
||||
*/
|
||||
public function setPort($iPort)
|
||||
{
|
||||
$this->port = ($iPort != '' ? (int)$iPort : 25);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setReturnPath
|
||||
* This function sets the return path
|
||||
* @param string $sReturnPath
|
||||
* @return void
|
||||
*/
|
||||
public function setReturnPath($sReturnPath)
|
||||
{
|
||||
$this->return_path = $sReturnPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setHeaders
|
||||
* This sets the headers of the mail to be sent
|
||||
* @param string $sHeaders
|
||||
* @return void
|
||||
*/
|
||||
public function setHeaders($sHeaders)
|
||||
{
|
||||
$this->headers = $sHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setBody
|
||||
* This sets the mail body
|
||||
* @param string $sBody
|
||||
* @return void
|
||||
*/
|
||||
public function setBody($sBody)
|
||||
{
|
||||
$this->body = $sBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setSmtpAuthentication
|
||||
* This function sets the Smtp Authentication
|
||||
* @param string $sAuth
|
||||
* @return void
|
||||
*/
|
||||
public function setSmtpAuthentication($sAuth)
|
||||
{
|
||||
$this->with_auth = $sAuth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setUsername
|
||||
* This function sets the user name
|
||||
* @param string $sName
|
||||
* @return void
|
||||
*/
|
||||
public function setUsername($sName)
|
||||
{
|
||||
$this->username = $sName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setPassword
|
||||
* This function sets the password
|
||||
* @param string $sPass
|
||||
* @return void
|
||||
*/
|
||||
public function setPassword($sPass)
|
||||
{
|
||||
$this->password = $sPass;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function returnErrors
|
||||
* This Function returns errors
|
||||
* @return void
|
||||
*/
|
||||
public function returnErrors()
|
||||
{
|
||||
return $this->log;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function returnStatus
|
||||
* @return void
|
||||
*/
|
||||
public function returnStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function setEnvelopeTo
|
||||
* @param string $env_to
|
||||
* @return void
|
||||
*/
|
||||
public function setEnvelopeTo($env_to)
|
||||
{
|
||||
if(count($env_to)>0){
|
||||
foreach($env_to as $val){
|
||||
(false !== ($p = strpos($val,'<')))
|
||||
? $this->envelope_to[] = trim(substr($val,$p))
|
||||
: $this->envelope_to[] = trim($val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function sendMessage
|
||||
* This function is responsible for sending the message
|
||||
* @return boolean
|
||||
*/
|
||||
public function sendMessage()
|
||||
{
|
||||
// connect
|
||||
$errno = $errstr = '';
|
||||
$cp = @fsockopen("$this->mail_server", $this->port, $errno, $errstr, 1);
|
||||
if(!$cp){
|
||||
$this->log[] = 'Failed to make a connection';
|
||||
return false;
|
||||
}
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '220'){
|
||||
$this->log[] = $res.' Failed to connect';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
if(false !== $this->with_auth){
|
||||
// say EHLO - works with SMTP and ESMTP servers
|
||||
fputs($cp, 'EHLO '."$this->mail_server\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '250'){
|
||||
$this->log[] = $res.' Failed to say EHLO';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// Request Authentication
|
||||
fputs($cp, 'AUTH LOGIN'."\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '334'){
|
||||
$this->log[] = $res.' Auth Login Failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// Send Username
|
||||
fputs($cp, base64_encode($this->username)."\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '334'){
|
||||
$this->log[] = $res.' Username failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// Send Password
|
||||
fputs($cp, base64_encode($this->password)."\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '235'){
|
||||
$this->log[] = $res.' Password failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else{// without smtp authentication
|
||||
// say HELO
|
||||
fputs($cp, 'HELO '."$this->mail_server\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '250'){
|
||||
$this->log[] = $res.' Failed to say HELO';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// mail from
|
||||
fputs($cp, 'MAIL FROM: '."$this->return_path\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '250'){
|
||||
$this->log[] = $res.' MAIL FROM failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// mail to
|
||||
foreach($this->envelope_to as $val){
|
||||
fputs($cp, 'RCPT TO: '."$val\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '250'){
|
||||
$this->log[] = $res.' RCPT TO failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// data
|
||||
fputs($cp, 'DATA'."\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '354'){
|
||||
$this->log[] = $res.' DATA failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// send headers
|
||||
fputs($cp, "$this->headers\r\n");
|
||||
// send body
|
||||
fputs($cp, "$this->body\r\n");
|
||||
// end of message
|
||||
fputs($cp, "\r\n.\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '250'){
|
||||
$this->log[] = $res. ' Message failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
// quit
|
||||
fputs($cp, 'QUIT'."\r\n");
|
||||
$res = fgets($cp,256);
|
||||
if(substr($res,0,3) != '221'){
|
||||
$this->log[] = $res.' QUIT failed';
|
||||
fclose($cp);
|
||||
return false;
|
||||
}
|
||||
fclose($cp);
|
||||
$this->status = true;
|
||||
}
|
||||
} // end of class
|
||||
?>
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.tasks.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -46,7 +47,7 @@
|
||||
require_once ('classes/model/AppMessage.php');
|
||||
|
||||
/**
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* upgrade_System.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
||||
* 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
|
||||
@@ -21,15 +21,15 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* class system for workflow mantanance routines
|
||||
*
|
||||
* @uthor Erik A.O.<erik@colosa.com>
|
||||
* @date May 12th, 2010
|
||||
* author Erik A.O.<erik@colosa.com>
|
||||
* date May 12th, 2010
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -47,7 +47,7 @@ class System {
|
||||
/**
|
||||
* List currently installed plugins
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array with the names of the plugins
|
||||
*/
|
||||
public static function getPlugins() {
|
||||
@@ -86,7 +86,7 @@ class System {
|
||||
/**
|
||||
* Get system information
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array with system information
|
||||
*/
|
||||
public static function getSysInfo() {
|
||||
@@ -190,7 +190,7 @@ class System {
|
||||
*
|
||||
* @name verifyFileForUpgrade
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return boolean
|
||||
*/
|
||||
function verifyFileForUpgrade()
|
||||
@@ -214,7 +214,7 @@ class System {
|
||||
*
|
||||
* @name getUpgradedFilesList
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return void
|
||||
*/
|
||||
function getUpgradedFilesList()
|
||||
@@ -244,7 +244,7 @@ class System {
|
||||
*
|
||||
* @name verifyForBootstrapUpgrade
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return boolean
|
||||
*/
|
||||
function verifyForBootstrapUpgrade()
|
||||
@@ -264,7 +264,7 @@ class System {
|
||||
*
|
||||
* @name upgrade
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function upgrade()
|
||||
@@ -571,7 +571,7 @@ class System {
|
||||
*
|
||||
* @name cleanupUpgradeDirectory
|
||||
*
|
||||
* @param
|
||||
* param
|
||||
* @return array
|
||||
*/
|
||||
function cleanupUpgradeDirectory()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.tasks.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
@@ -20,9 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
require_once 'classes/model/GroupUser.php';
|
||||
require_once 'classes/model/Groupwf.php';
|
||||
require_once 'classes/model/ObjectPermission.php';
|
||||
@@ -37,7 +37,7 @@ require_once 'classes/model/Gateway.php';
|
||||
|
||||
/**
|
||||
* Tasks - Tasks class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
* @author Julio Cesar Laura Avenda<64>o
|
||||
* @copyright 2007 COLOSA
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.toolBar.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
/**
|
||||
* ToolBar - ToolBar class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class ToolBar extends form
|
||||
{
|
||||
@@ -35,7 +36,7 @@ class ToolBar extends form
|
||||
|
||||
/**
|
||||
* XmlForm_Field_ToolBar - XmlForm_Field_ToolBar class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class XmlForm_Field_ToolBar extends XmlForm_Field
|
||||
{
|
||||
@@ -78,7 +79,7 @@ class XmlForm_Field_ToolBar extends XmlForm_Field
|
||||
|
||||
/**
|
||||
* XmlForm_Field_toolButton - XmlForm_Field_toolButton class
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class XmlForm_Field_toolButton extends XmlForm_Field
|
||||
{
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Hugo Loza <hugo@colosa.com>
|
||||
*
|
||||
* This class Helps registering and implementing Wizard for Triggers
|
||||
* @package workflow.ProcessMaker
|
||||
*/
|
||||
G::LoadThirdParty ( 'html2ps_pdf/classes', 'include' );
|
||||
G::LoadThirdParty ( 'html2ps_pdf/classes/org/active-link/doc', 'PHPClass' );
|
||||
|
||||
/**
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
|
||||
class triggerLibrary {
|
||||
|
||||
private $_aTriggerClasses_ = array ();
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* class.webdav.php
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
require_once "HTTP/WebDAV/Server.php";
|
||||
require_once "System.php";
|
||||
@@ -7,7 +11,7 @@ require_once "System.php";
|
||||
* ProcessMaker Filesystem access using WebDAV
|
||||
*
|
||||
* @access public
|
||||
* @package workflow.classes
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class ProcessMakerWebDav extends HTTP_WebDAV_Server
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.wsBase.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
||||
* 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
|
||||
@@ -20,9 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
|
||||
@@ -66,9 +64,10 @@
|
||||
/**
|
||||
* Copyright (C) 2009 COLOSA
|
||||
* License: LGPL, see LICENSE
|
||||
* @Last Modify: 26.06.2008 10:05:00
|
||||
* @Last modify by: Erik Amaru Ortiz <erik@colosa.com>
|
||||
* @Last Modify comment(26.06.2008): the session expired verification was removed from here to soap class
|
||||
* Last Modify: 26.06.2008 10:05:00
|
||||
* Last modify by: Erik Amaru Ortiz <erik@colosa.com>
|
||||
* Last Modify comment(26.06.2008): the session expired verification was removed from here to soap class
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class wsBase
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.wsResponse.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,8 +21,10 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class wsResponse
|
||||
@@ -72,6 +75,7 @@ class wsResponse
|
||||
|
||||
/**
|
||||
* Class wsCreateUserResponse
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class wsCreateUserResponse
|
||||
{
|
||||
@@ -99,6 +103,7 @@ class wsCreateUserResponse
|
||||
|
||||
/**
|
||||
* Class wsCreateGroupResponse
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class wsCreateGroupResponse
|
||||
{
|
||||
@@ -126,6 +131,7 @@ class wsCreateGroupResponse
|
||||
|
||||
/**
|
||||
* Class wsCreateDepartmentResponse
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class wsCreateDepartmentResponse
|
||||
{
|
||||
@@ -152,6 +158,7 @@ class wsCreateDepartmentResponse
|
||||
|
||||
/**
|
||||
* Class wsGetVariableResponse
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class wsGetVariableResponse
|
||||
{
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Utility functions to manage a workspace.
|
||||
*
|
||||
* @author Alexandre Rosenfeld
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
G::LoadSystem('dbMaintenance');
|
||||
G::LoadClass("cli");
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
* class workspaceTools
|
||||
*/
|
||||
|
||||
class workspaceTools {
|
||||
var $name = NULL;
|
||||
var $path = NULL;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.xmlDb.php
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -24,14 +25,13 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* XMLDB
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
*
|
||||
* @copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* @package workflow.ProcessMaker
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class XMLDB
|
||||
{
|
||||
@@ -73,6 +73,7 @@ class XMLDB
|
||||
* ProcessMaker Open Source Edition
|
||||
*
|
||||
* @copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class XMLConnection
|
||||
{
|
||||
@@ -567,6 +568,7 @@ class XMLConnection
|
||||
* ProcessMaker Open Source Edition
|
||||
*
|
||||
* @copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
class XMLResult
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.xmlfield_Image.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,12 +21,15 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
// DEPRECATED this class is also part of the xmlform package this class will be also removed
|
||||
// in future releases of pm, its discouraged the inclusion this class in the future from a
|
||||
// external file like this
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class XmlForm_Field_Image extends XmlForm_Field
|
||||
{
|
||||
var $file = '';
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* class.xmlfield_InputPM.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -20,8 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
class XmlForm_Field_TextPM extends XmlForm_Field_SimpleText
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* class.xpdl.php
|
||||
* @package workflow.engine.classes
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
* 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
|
||||
@@ -21,9 +21,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
* /**
|
||||
* @package workflow.classes
|
||||
*/
|
||||
|
||||
G::LoadClass('processes');
|
||||
G::LoadClass('tasks');
|
||||
G::LoadClass('derivation');
|
||||
@@ -31,6 +30,10 @@ require_once 'classes/model/Users.php';
|
||||
require_once 'classes/model/Configuration.php';
|
||||
require_once 'classes/model/Gateway.php';
|
||||
require_once 'classes/model/Event.php';
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
class Xpdl extends processes
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user