public static function get($protections)
 {
     $lProtections = array();
     foreach ($protections as $lProtection) {
         $lProtectionItem = new protection_item($lProtection[database_fields::COLUMN_NAME], $lProtection[database_fields::COLUMN_ID], $lProtection[database_fields::COLUMN_IS_ENABLED]);
         array_push($lProtections, $lProtectionItem->prepareFieldsForJson());
     }
     if (count($lProtections) > 0) {
         return json_encode($lProtections, JSON_PRETTY_PRINT);
     } else {
         http_response_code(ResponseCodes::InvalidInput);
     }
 }