public static function update($id, $name, $enabled) { $lProtections = array(); $lProtectionItem = new protection_item($name, $id, $enabled); array_push($lProtections, $lProtectionItem->prepareFieldsForDB()); return $lProtections; }