Define Interface for List classes.
Implement a trait base for the lists.
Fix sort by current user at Review and Reassign lists.
This commit is contained in:
davidcallizaya
2017-11-21 09:35:32 -04:00
parent c7b6c4128c
commit 8d5308dff8
14 changed files with 250 additions and 215 deletions

View File

@@ -0,0 +1,42 @@
<?php
/**
* Interface for list of cases
*
*/
interface ListInterface extends ListCreateUpdateInterface, ListAdditionalColumnsInterface, ListUserDisplayFormatInterface
{
/**
* This function add restriction in the query related to the filters.
*
* @param Criteria $criteria , must be contain only select of columns
* @param array $filters
* @param array $additionalColumns information about the new columns related to custom cases list
*
* @throws PropelException
*/
public function loadFilters(&$criteria, $filters);
/**
* This function get the information in the corresponding cases list.
*
* @param string $usr_uid , must be show cases related to this user
* @param array $filters for apply in the result
* @param callable $callbackRecord
*
* @return array $data
* @throws PropelException
*/
public function loadList($usr_uid, $filters = [], callable $callbackRecord = null);
/**
* Returns the number of cases of a user.
*
* @param string $usrUid
* @param array $filters
*
* @return int
*/
public function getCountList($usrUid, $filters = []);
}