2013-12-02 17:36:37 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
require_once 'classes/model/om/BaseBpmnProcess.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Skeleton subclass for representing a row from the 'BPMN_PROCESS' table.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* You should add additional methods to this class to meet the
|
|
|
|
|
* application requirements. This class will only be generated as
|
|
|
|
|
* long as it does not already exist in the output directory.
|
|
|
|
|
*
|
|
|
|
|
* @package classes.model
|
|
|
|
|
*/
|
2014-02-03 19:37:50 -04:00
|
|
|
class BpmnProcess extends BaseBpmnProcess
|
|
|
|
|
{
|
|
|
|
|
public static function findAllByProUid($prjUid)
|
|
|
|
|
{
|
|
|
|
|
$c = new Criteria("workflow");
|
|
|
|
|
$c->add(BpmnProcessPeer::PRJ_UID, $prjUid);
|
2013-12-02 17:36:37 -04:00
|
|
|
|
2014-02-03 19:37:50 -04:00
|
|
|
return BpmnProcessPeer::doSelect($c);
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-28 19:46:14 -04:00
|
|
|
public static function getAll($prjUid = null, $start = null, $limit = null, $filter = '', $changeCaseTo = CASE_UPPER)
|
|
|
|
|
{
|
|
|
|
|
$c = new Criteria('workflow');
|
|
|
|
|
$c->addSelectColumn("BPMN_PROCESS.*");
|
|
|
|
|
|
|
|
|
|
if (! is_null($prjUid)) {
|
|
|
|
|
$c->add(BpmnProcessPeer::PRJ_UID, $prjUid, Criteria::EQUAL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$rs = BpmnProcessPeer::doSelectRS($c);
|
|
|
|
|
$rs->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
|
|
|
|
|
|
|
|
|
|
$processes = array();
|
|
|
|
|
while ($rs->next()) {
|
|
|
|
|
$processes[] = $changeCaseTo !== CASE_UPPER ? array_change_key_case($rs->getRow(), CASE_LOWER) : $rs->getRow();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $processes;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-03 19:37:50 -04:00
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
|
|
|
|
|
|
public function toArray($type = BasePeer::TYPE_FIELDNAME)
|
|
|
|
|
{
|
|
|
|
|
return parent::toArray($type);
|
|
|
|
|
}
|
2013-12-02 17:36:37 -04:00
|
|
|
} // BpmnProcess
|