39 'filter' => array(
'ACTIVE' =>
'Y')
42 while ($company = $dbRes->fetch())
44 if ($mode == Restrictions\Manager::MODE_MANAGER)
46 $checkServiceResult = Restrictions\Manager::checkService($company[
'ID'], $entity, $mode);
47 if ($checkServiceResult != Restrictions\Manager::SEVERITY_STRICT)
49 if ($checkServiceResult == Restrictions\Manager::SEVERITY_SOFT)
50 $company[
'RESTRICTED'] = $checkServiceResult;
51 $result[$company[
'ID']] = $company;
54 else if ($mode == Restrictions\Manager::MODE_CLIENT)
56 if (Restrictions\Manager::checkService($company[
'ID'], $entity, $mode) === Restrictions\Manager::SEVERITY_NONE)
57 $result[$company[
'ID']] = $company;
72 'select' => array(
'ID'),
73 'filter' => array(
'=ACTIVE' =>
'Y'),
74 'order' => array(
'SORT' =>
'ASC')
77 while ($company = $dbRes->fetch())
79 $result = Restrictions\Manager::checkService($company[
'ID'], $entity, $mode);
80 if ($mode == Restrictions\Manager::MODE_CLIENT)
82 if ($result == Restrictions\Manager::SEVERITY_NONE)
83 return $company[
'ID'];
87 if ($result != Restrictions\Manager::SEVERITY_STRICT)
88 return $company[
'ID'];