Example #1
0
 /**
  * get Hosts by acl id
  *
  * @param int $aclId
  */
 public static function updateAllHostsAcl($action, $objectId, $allHosts)
 {
     if ($action === 'create' || $action === 'update') {
         try {
             AclresourceHostsParams::delete($objectId);
         } catch (\Exception $e) {
         }
         AclresourceHostsParams::insert(array("acl_resource_id" => $objectId, "all_hosts" => $allHosts), true);
     }
 }