2019-11-04 15:22:11 +00:00
|
|
|
<?php
|
2020-08-20 16:30:16 +00:00
|
|
|
|
2019-11-04 15:22:11 +00:00
|
|
|
/**
|
|
|
|
* Project:
|
|
|
|
* Contenido Content Management System
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Simple wrapper for workflow tasks
|
|
|
|
*
|
|
|
|
* Requirements:
|
|
|
|
* @con_php_req 5.0
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @package Contenido Backend classes
|
|
|
|
* @version 1.2
|
|
|
|
* @author Timo Hummel
|
|
|
|
* @copyright four for business AG <www.4fb.de>
|
|
|
|
* @license http://www.contenido.org/license/LIZENZ.txt
|
|
|
|
* @link http://www.4fb.de
|
|
|
|
* @link http://www.contenido.org
|
|
|
|
*
|
|
|
|
* {@internal
|
|
|
|
* created 2003-07-18
|
|
|
|
*
|
|
|
|
* $Id: class.workflowtasks.php 128 2019-07-03 11:58:28Z oldperl $
|
|
|
|
* }}
|
|
|
|
*
|
|
|
|
*/
|
2020-08-20 16:30:16 +00:00
|
|
|
if (!defined('CON_FRAMEWORK')) {
|
|
|
|
die('Illegal call');
|
2019-11-04 15:22:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class WorkflowTasks
|
|
|
|
* Class for workflow task collections
|
|
|
|
* @author Timo A. Hummel <Timo.Hummel@4fb.de>
|
|
|
|
* @version 0.2
|
|
|
|
* @copyright four for business 2003
|
|
|
|
*/
|
|
|
|
class WorkflowTasks extends ItemCollection {
|
2020-08-20 16:30:16 +00:00
|
|
|
|
|
|
|
/**
|
2019-11-04 15:22:11 +00:00
|
|
|
* Constructor Function
|
|
|
|
* @param string $table The table to use as information source
|
|
|
|
*/
|
2020-08-20 16:30:16 +00:00
|
|
|
function __construct() {
|
|
|
|
global $cfg;
|
|
|
|
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
2019-11-04 15:22:11 +00:00
|
|
|
$this->_setItemClass("WorkflowTask");
|
2020-08-20 16:30:16 +00:00
|
|
|
}
|
|
|
|
|
2019-11-04 15:22:11 +00:00
|
|
|
/** @deprecated [2011-03-15] Old constructor function for downwards compatibility */
|
2020-08-20 16:30:16 +00:00
|
|
|
function WorkflowTasks() {
|
2019-11-04 15:22:11 +00:00
|
|
|
cWarning(__FILE__, __LINE__, "Deprecated method call, use __construct()");
|
|
|
|
$this->__construct();
|
|
|
|
}
|
|
|
|
|
2020-08-20 16:30:16 +00:00
|
|
|
function create() {
|
|
|
|
$newitem = parent::createNewItem();
|
|
|
|
return ($newitem);
|
|
|
|
}
|
|
|
|
|
|
|
|
function select($where = "", $group_by = "", $order_by = "", $limit = "") {
|
|
|
|
global $client;
|
|
|
|
|
|
|
|
if ($where != "") {
|
|
|
|
$where = $where . " AND idclient = '" . Contenido_Security::escapeDB($client, NULL) . "'";
|
|
|
|
}
|
|
|
|
return parent::select($where, $group_by, $order_by, $limit);
|
|
|
|
}
|
|
|
|
|
2019-11-04 15:22:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class WorkflowTask
|
|
|
|
* Class for a single workflow task item
|
|
|
|
* @author Timo A. Hummel <Timo.Hummel@4fb.de>
|
|
|
|
* @version 0.1
|
|
|
|
* @copyright four for business 2003
|
|
|
|
*/
|
|
|
|
class WorkflowTask extends Item {
|
2020-08-20 16:30:16 +00:00
|
|
|
|
|
|
|
/**
|
2019-11-04 15:22:11 +00:00
|
|
|
* Constructor Function
|
|
|
|
* @param string $table The table to use as information source
|
|
|
|
*/
|
2020-08-20 16:30:16 +00:00
|
|
|
function __construct() {
|
|
|
|
global $cfg;
|
|
|
|
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
|
|
|
}
|
2019-11-04 15:22:11 +00:00
|
|
|
|
|
|
|
/** @deprecated [2011-03-15] Old constructor function for downwards compatibility */
|
2020-08-20 16:30:16 +00:00
|
|
|
function WorkflowTask() {
|
2019-11-04 15:22:11 +00:00
|
|
|
cWarning(__FILE__, __LINE__, "Deprecated method call, use __construct()");
|
|
|
|
$this->__construct();
|
|
|
|
}
|
2020-08-20 16:30:16 +00:00
|
|
|
|
2019-11-04 15:22:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|