* @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 $ * }} * */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } /** * Class WorkflowTasks * Class for workflow task collections * @author Timo A. Hummel * @version 0.2 * @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"); $this->_setItemClass("WorkflowTask"); } /** @deprecated [2011-03-15] Old constructor function for downwards compatibility */ 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); } } /** * Class WorkflowTask * Class for a single workflow task item * @author Timo A. Hummel * @version 0.1 * @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"); } /** @deprecated [2011-03-15] Old constructor function for downwards compatibility */ function WorkflowTask() { cWarning(__FILE__, __LINE__, "Deprecated method call, use __construct()"); $this->__construct(); } } ?>