# Classe CollectionModify

(PECL mysql-xdevapi >= 8.0.11)

## Introdução

## Resumo da classe

class mysql_xdevapi\CollectionModify implements mysql_xdevapi\Executable, mysql_xdevapi\CrudOperationBindable, mysql_xdevapi\CrudOperationLimitable, mysql_xdevapi\CrudOperationSkippable, mysql_xdevapi\CrudOperationSortable {
/* Métodos */
public function arrayAppend(string `$collection_field`, string `$expression_or_literal`): mysql_xdevapi\CollectionModify
public function arrayInsert(string `$collection_field`, string `$expression_or_literal`): mysql_xdevapi\CollectionModify
public function bind(array `$placeholder_values`): mysql_xdevapi\CollectionModify
public function execute(): mysql_xdevapi\Result
public function limit(int `$rows`): mysql_xdevapi\CollectionModify
public function patch(string `$document`): mysql_xdevapi\CollectionModify
public function replace(string `$collection_field`, string `$expression_or_literal`): mysql_xdevapi\CollectionModify
public function set(string `$collection_field`, string `$expression_or_literal`): mysql_xdevapi\CollectionModify
public function skip(int `$position`): mysql_xdevapi\CollectionModify
public function sort(string `$sort_expr`): mysql_xdevapi\CollectionModify
public function unset(array `$fields`): mysql_xdevapi\CollectionModify
}

## Índice

- CollectionModify::arrayAppend — Anexa elemento a um array de campos
- CollectionModify::arrayInsert — Insere elemento em um array de campos
- CollectionModify::bind — Vincula valor ao marcador da consulta
- CollectionModify::__construct — Construtor de CollectionModify
- CollectionModify::execute — Executa operação de modificação
- CollectionModify::limit — Limita o número de documentos modificados
- CollectionModify::patch — Corrige documento
- CollectionModify::replace — Substitui campo de documento
- CollectionModify::set — Define atributo de documento
- CollectionModify::skip — Pula elementos
- CollectionModify::sort — Define os critérios de ordenação
- CollectionModify::unset — Remove o valor de campos do documento

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open