Skip to content
Corex

TableDataWriter

Corex\Config\Data\TableDataWriter · interface · Config layer

The write half of the managed-table boundary, kept separate from {@see TableDataReader} so a read-only table’s source cannot be handed something that writes. Every method takes the columns it is allowed to touch as an argument rather than trusting the values array: the caller has already narrowed them to the table’s declared writable fields, and passing them explicitly means the $wpdb layer can drop anything else without knowing why.

insert(string $table, array $columns, array $values): int

Section titled “insert(string $table, array $columns, array $values): int”

update(string $table, array $columns, array $ids, array $values): int

Section titled “update(string $table, array $columns, array $ids, array $values): int”