for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Group Query Field Class.
*
* @package UIType
* @copyright YetiForce S.A.
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Adrian Kon <[email protected]>
*/
namespace App\Conditions\QueryFields;
class GroupField extends BaseField
{
/** {@inheritdoc} */
public function getValue()
if (\is_array($this->value)) {
return $this->value;
}
return explode('##', $this->value);
* Currently logged-in user groups.
* @return array
public function operatorOgr(): array
$groups = \App\Fields\Owner::getInstance($this->getModuleName())->getGroups(false, 'private');
return [$this->getColumnName() => \array_keys($groups)];