HOR-4489
This commit is contained in:
@@ -115,13 +115,23 @@ class AppThread extends BaseAppThread
|
||||
}
|
||||
}
|
||||
|
||||
public function countStatus($appUid, $status='OPEN'){
|
||||
/**
|
||||
* Count the open threads
|
||||
*
|
||||
* @param string $appUid
|
||||
* @param string $status
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public static function countStatus($appUid, $status = 'OPEN')
|
||||
{
|
||||
$c = new Criteria('workflow');
|
||||
$c->clearSelectColumns();
|
||||
$c->addSelectColumn( AppThreadPeer::APP_THREAD_PARENT );
|
||||
$c->add(AppThreadPeer::APP_UID, $appUid );
|
||||
$c->add(AppThreadPeer::APP_THREAD_STATUS , $status );
|
||||
$c->addSelectColumn(AppThreadPeer::APP_THREAD_PARENT);
|
||||
$c->add(AppThreadPeer::APP_UID, $appUid);
|
||||
$c->add(AppThreadPeer::APP_THREAD_STATUS, $status);
|
||||
$cant = AppThreadPeer::doCount($c);
|
||||
|
||||
return $cant;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user