PHP Класс eZ\Publish\Core\Persistence\Doctrine\UpdateDoctrineQuery

Наследование: extends AbstractDoctrineQuery, implements eZ\Publish\Core\Persistence\Database\UpdateQuery
Показать файл Открыть проект

Открытые методы

Метод Описание
getQuery ( ) : string
set ( string $column, string $expression ) : eZ\Publish\Core\Persistence\Database\UpdateQuery The update query will set the column $column to the value $expression.
update ( string $table ) : eZ\Publish\Core\Persistence\Database\UpdateQuery Opens the query and sets the target table to $table.
where ( ) : eZ\Publish\Core\Persistence\Database\UpdateQuery Adds a where clause with logical expressions to the query.

Описание методов

getQuery() публичный Метод

public getQuery ( ) : string
Результат string

set() публичный Метод

The update query will set the column $column to the value $expression.
public set ( string $column, string $expression ) : eZ\Publish\Core\Persistence\Database\UpdateQuery
$column string
$expression string
Результат eZ\Publish\Core\Persistence\Database\UpdateQuery

update() публичный Метод

update() returns a pointer to $this.
public update ( string $table ) : eZ\Publish\Core\Persistence\Database\UpdateQuery
$table string
Результат eZ\Publish\Core\Persistence\Database\UpdateQuery

where() публичный Метод

where() accepts an arbitrary number of parameters. Each parameter must contain a logical expression or an array with logical expressions. If you specify multiple logical expression they are connected using a logical and. where() could be invoked several times. All provided arguments added to the end of $whereString and form final WHERE clause of the query. Example: $q->update( 'MyTable' )->where( $q->expr->eq( 'id', 1 ) );
public where ( ) : eZ\Publish\Core\Persistence\Database\UpdateQuery
Результат eZ\Publish\Core\Persistence\Database\UpdateQuery