PMCORE-3832
This commit is contained in:
committed by
Paula.Quispe
parent
c4684271c6
commit
908e975d5f
@@ -204,6 +204,25 @@ class Process extends Model
|
||||
return $query->where('PROCESS.PRO_STATUS', $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return process
|
||||
* @param int|string $id
|
||||
* @param string $key
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getIds($id, $key)
|
||||
{
|
||||
$process = Process::query()
|
||||
->select()
|
||||
->where($key, $id)
|
||||
->get()
|
||||
->values()
|
||||
->toArray();
|
||||
|
||||
return $process;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtains the process list for an specific user and/or for the specific category
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user