PMCORE-3110
This commit is contained in:
@@ -1275,6 +1275,34 @@ class AbstractCases implements CasesInterface
|
|||||||
if (!empty($properties['caseTitle'])) {
|
if (!empty($properties['caseTitle'])) {
|
||||||
$this->setCaseTitle($properties['caseTitle']);
|
$this->setCaseTitle($properties['caseTitle']);
|
||||||
}
|
}
|
||||||
|
/** Apply filters related to INBOX */
|
||||||
|
// Filter date related to delegate from
|
||||||
|
if (get_class($this) === Inbox::class && !empty($properties['delegateFrom'])) {
|
||||||
|
$this->setDelegateFrom($properties['delegateFrom']);
|
||||||
|
}
|
||||||
|
// Filter date related to delegate to
|
||||||
|
if (get_class($this) === Inbox::class && !empty($properties['delegateTo'])) {
|
||||||
|
$this->setDelegateTo($properties['delegateTo']);
|
||||||
|
}
|
||||||
|
/** Apply filters related to PAUSED */
|
||||||
|
// Filter date related to delegate from
|
||||||
|
if (get_class($this) === Paused::class && !empty($properties['delegateFrom'])) {
|
||||||
|
$this->setDelegateFrom($properties['delegateFrom']);
|
||||||
|
}
|
||||||
|
// Filter date related to delegate to
|
||||||
|
if (get_class($this) === Paused::class && !empty($properties['delegateTo'])) {
|
||||||
|
$this->setDelegateTo($properties['delegateTo']);
|
||||||
|
}
|
||||||
|
/** Apply filters related to UNASSIGNED */
|
||||||
|
// Filter date related to delegate from
|
||||||
|
if (get_class($this) === Unassigned::class && !empty($properties['delegateFrom'])) {
|
||||||
|
$this->setDelegateFrom($properties['delegateFrom']);
|
||||||
|
}
|
||||||
|
// Filter date related to delegate to
|
||||||
|
if (get_class($this) === Unassigned::class && !empty($properties['delegateTo'])) {
|
||||||
|
$this->setDelegateTo($properties['delegateTo']);
|
||||||
|
}
|
||||||
|
|
||||||
/** Apply filters related to MY CASES */
|
/** Apply filters related to MY CASES */
|
||||||
// My cases filter: started, in-progress, completed, supervising
|
// My cases filter: started, in-progress, completed, supervising
|
||||||
if (get_class($this) === Participated::class && !empty($properties['filter'])) {
|
if (get_class($this) === Participated::class && !empty($properties['filter'])) {
|
||||||
|
|||||||
@@ -79,6 +79,15 @@ class Inbox extends AbstractCases
|
|||||||
$query->appUid($this->getCaseUid());
|
$query->appUid($this->getCaseUid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specific delegate date from
|
||||||
|
if (!empty($this->getDelegateFrom())) {
|
||||||
|
$query->delegateDateFrom($this->getDelegateFrom());
|
||||||
|
}
|
||||||
|
// Specific delegate date to
|
||||||
|
if (!empty($this->getDelegateTo())) {
|
||||||
|
$query->delegateDateTo($this->getDelegateTo());
|
||||||
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,15 @@ class Paused extends AbstractCases
|
|||||||
$query->appUid($this->getCaseUid());
|
$query->appUid($this->getCaseUid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specific delegate date from
|
||||||
|
if (!empty($this->getDelegateFrom())) {
|
||||||
|
$query->delegateDateFrom($this->getDelegateFrom());
|
||||||
|
}
|
||||||
|
// Specific delegate date to
|
||||||
|
if (!empty($this->getDelegateTo())) {
|
||||||
|
$query->delegateDateTo($this->getDelegateTo());
|
||||||
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,15 @@ class Unassigned extends AbstractCases
|
|||||||
$query->appUid($this->getCaseUid());
|
$query->appUid($this->getCaseUid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specific delegate date from
|
||||||
|
if (!empty($this->getDelegateFrom())) {
|
||||||
|
$query->delegateDateFrom($this->getDelegateFrom());
|
||||||
|
}
|
||||||
|
// Specific delegate date to
|
||||||
|
if (!empty($this->getDelegateTo())) {
|
||||||
|
$query->delegateDateTo($this->getDelegateTo());
|
||||||
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ class Home extends Api
|
|||||||
* @param int $process
|
* @param int $process
|
||||||
* @param int $task
|
* @param int $task
|
||||||
* @param string $caseTitle
|
* @param string $caseTitle
|
||||||
|
* @param string $delegateFrom
|
||||||
|
* @param string $delegateTo
|
||||||
* @param string $filterCases
|
* @param string $filterCases
|
||||||
* @param string $paged
|
* @param string $paged
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
@@ -125,6 +127,8 @@ class Home extends Api
|
|||||||
int $process = 0,
|
int $process = 0,
|
||||||
int $task = 0,
|
int $task = 0,
|
||||||
string $caseTitle = '',
|
string $caseTitle = '',
|
||||||
|
string $delegateFrom = '',
|
||||||
|
string $delegateTo = '',
|
||||||
string $filterCases = '',
|
string $filterCases = '',
|
||||||
string $paged = '0,15',
|
string $paged = '0,15',
|
||||||
string $sort = 'APP_NUMBER,DESC'
|
string $sort = 'APP_NUMBER,DESC'
|
||||||
@@ -135,6 +139,8 @@ class Home extends Api
|
|||||||
$properties = [];
|
$properties = [];
|
||||||
$properties['caseNumber'] = $caseNumber;
|
$properties['caseNumber'] = $caseNumber;
|
||||||
$properties['caseTitle'] = $caseTitle;
|
$properties['caseTitle'] = $caseTitle;
|
||||||
|
$properties['delegateFrom'] = $delegateFrom;
|
||||||
|
$properties['delegateTo'] = $delegateTo;
|
||||||
$properties['filterCases'] = $filterCases;
|
$properties['filterCases'] = $filterCases;
|
||||||
$properties['process'] = $process;
|
$properties['process'] = $process;
|
||||||
$properties['task'] = $task;
|
$properties['task'] = $task;
|
||||||
@@ -167,6 +173,8 @@ class Home extends Api
|
|||||||
* @param int $process
|
* @param int $process
|
||||||
* @param int $task
|
* @param int $task
|
||||||
* @param string $caseTitle
|
* @param string $caseTitle
|
||||||
|
* @param string $delegateFrom
|
||||||
|
* @param string $delegateTo
|
||||||
* @param string $filterCases
|
* @param string $filterCases
|
||||||
* @param string $paged
|
* @param string $paged
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
@@ -183,6 +191,8 @@ class Home extends Api
|
|||||||
int $process = 0,
|
int $process = 0,
|
||||||
int $task = 0,
|
int $task = 0,
|
||||||
string $caseTitle = '',
|
string $caseTitle = '',
|
||||||
|
string $delegateFrom = '',
|
||||||
|
string $delegateTo = '',
|
||||||
string $filterCases = '',
|
string $filterCases = '',
|
||||||
string $paged = '0,15',
|
string $paged = '0,15',
|
||||||
string $sort = 'APP_NUMBER,DESC'
|
string $sort = 'APP_NUMBER,DESC'
|
||||||
@@ -193,6 +203,8 @@ class Home extends Api
|
|||||||
$properties = [];
|
$properties = [];
|
||||||
$properties['caseNumber'] = $caseNumber;
|
$properties['caseNumber'] = $caseNumber;
|
||||||
$properties['caseTitle'] = $caseTitle;
|
$properties['caseTitle'] = $caseTitle;
|
||||||
|
$properties['delegateFrom'] = $delegateFrom;
|
||||||
|
$properties['delegateTo'] = $delegateTo;
|
||||||
$properties['filterCases'] = $filterCases;
|
$properties['filterCases'] = $filterCases;
|
||||||
$properties['process'] = $process;
|
$properties['process'] = $process;
|
||||||
$properties['task'] = $task;
|
$properties['task'] = $task;
|
||||||
@@ -227,6 +239,8 @@ class Home extends Api
|
|||||||
* @param int $process
|
* @param int $process
|
||||||
* @param int $task
|
* @param int $task
|
||||||
* @param string $caseTitle
|
* @param string $caseTitle
|
||||||
|
* @param string $delegateFrom
|
||||||
|
* @param string $delegateTo
|
||||||
* @param string $filterCases
|
* @param string $filterCases
|
||||||
* @param string $paged
|
* @param string $paged
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
@@ -243,6 +257,8 @@ class Home extends Api
|
|||||||
int $process = 0,
|
int $process = 0,
|
||||||
int $task = 0,
|
int $task = 0,
|
||||||
string $caseTitle = '',
|
string $caseTitle = '',
|
||||||
|
string $delegateFrom = '',
|
||||||
|
string $delegateTo = '',
|
||||||
string $filterCases = '',
|
string $filterCases = '',
|
||||||
string $paged = '0,15',
|
string $paged = '0,15',
|
||||||
string $sort = 'APP_NUMBER,DESC'
|
string $sort = 'APP_NUMBER,DESC'
|
||||||
@@ -253,6 +269,8 @@ class Home extends Api
|
|||||||
$properties = [];
|
$properties = [];
|
||||||
$properties['caseNumber'] = $caseNumber;
|
$properties['caseNumber'] = $caseNumber;
|
||||||
$properties['caseTitle'] = $caseTitle;
|
$properties['caseTitle'] = $caseTitle;
|
||||||
|
$properties['delegateFrom'] = $delegateFrom;
|
||||||
|
$properties['delegateTo'] = $delegateTo;
|
||||||
$properties['filterCases'] = $filterCases;
|
$properties['filterCases'] = $filterCases;
|
||||||
$properties['process'] = $process;
|
$properties['process'] = $process;
|
||||||
$properties['task'] = $task;
|
$properties['task'] = $task;
|
||||||
|
|||||||
Reference in New Issue
Block a user