recoding to use as plugin with CL
Dieser Commit ist enthalten in:
Ursprung
244621b05f
Commit
e8b0c80921
22 geänderte Dateien mit 2187 neuen und 2341 gelöschten Zeilen
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Project:
|
||||
* Contenido Content Management System
|
||||
|
|
@ -25,12 +26,10 @@
|
|||
* }}
|
||||
*
|
||||
*/
|
||||
|
||||
if(!defined('CON_FRAMEWORK')) {
|
||||
die('Illegal call');
|
||||
if (!defined('CON_FRAMEWORK')) {
|
||||
die('Illegal call');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class WorkflowTasks
|
||||
* Class for workflow task collections
|
||||
|
|
@ -39,41 +38,37 @@ if(!defined('CON_FRAMEWORK')) {
|
|||
* @copyright four for business 2003
|
||||
*/
|
||||
class WorkflowTasks extends ItemCollection {
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Constructor Function
|
||||
* @param string $table The table to use as information source
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
global $cfg;
|
||||
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
||||
function __construct() {
|
||||
global $cfg;
|
||||
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
||||
$this->_setItemClass("WorkflowTask");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** @deprecated [2011-03-15] Old constructor function for downwards compatibility */
|
||||
function WorkflowTasks()
|
||||
{
|
||||
function WorkflowTasks() {
|
||||
cWarning(__FILE__, __LINE__, "Deprecated method call, use __construct()");
|
||||
$this->__construct();
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -84,23 +79,22 @@ class WorkflowTasks extends ItemCollection {
|
|||
* @copyright four for business 2003
|
||||
*/
|
||||
class WorkflowTask extends Item {
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Constructor Function
|
||||
* @param string $table The table to use as information source
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
global $cfg;
|
||||
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
||||
}
|
||||
function __construct() {
|
||||
global $cfg;
|
||||
parent::__construct($cfg["tab"]["tasks"], "idtask");
|
||||
}
|
||||
|
||||
/** @deprecated [2011-03-15] Old constructor function for downwards compatibility */
|
||||
function WorkflowTask()
|
||||
{
|
||||
function WorkflowTask() {
|
||||
cWarning(__FILE__, __LINE__, "Deprecated method call, use __construct()");
|
||||
$this->__construct();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren