PMCORE-3709
This commit is contained in:
@@ -87,6 +87,23 @@ class ProcessVariables extends Model
|
||||
return $query->where('VAR_FIELD_TYPE_ID', $typeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the variable information
|
||||
*
|
||||
* @param string $varUid
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getVariable(string $varUid)
|
||||
{
|
||||
$query = ProcessVariables::query()->select();
|
||||
$query->where('VAR_UID', $varUid)->limit(1);
|
||||
$result = $query->get()->values()->toArray();
|
||||
$result = head($result);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the variables list
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user