Drupal 8  8.0.2
Delete Class Reference
Inheritance diagram for Delete:

Public Member Functions

 __construct (Connection $connection, $table, array $options=array())
 
 execute ()
 
 __toString ()
 
- Public Member Functions inherited from Query
 __construct (Connection $connection, $options)
 
 __sleep ()
 
 __wakeup ()
 
 __clone ()
 
 __toString ()
 
 uniqueIdentifier ()
 
 nextPlaceholder ()
 
 comment ($comment)
 
getComments ()
 
- Public Member Functions inherited from ConditionInterface
 condition ($field, $value=NULL, $operator= '=')
 
 where ($snippet, $args=array())
 
 isNull ($field)
 
 isNotNull ($field)
 
 exists (SelectInterface $select)
 
 notExists (SelectInterface $select)
 
conditions ()
 
 arguments ()
 
 compile (Connection $connection, PlaceholderInterface $queryPlaceholder)
 
 compiled ()
 
 conditionGroupFactory ($conjunction= 'AND')
 
 andConditionGroup ()
 
 orConditionGroup ()
 

Protected Attributes

 $table
 
- Protected Attributes inherited from Query
 $connection
 
 $connectionTarget
 
 $connectionKey
 
 $queryOptions
 
 $uniqueIdentifier
 
 $nextPlaceholder = 0
 
 $comments = array()
 

Additional Inherited Members

- Protected Member Functions inherited from Query
 execute ()
 

Detailed Description

General class for an abstracted DELETE operation.

Constructor & Destructor Documentation

__construct ( Connection  $connection,
  $table,
array  $options = array() 
)

Constructs a Delete object.

Parameters
\Drupal\Core\Database\Connection$connectionA Connection object.
string$tableName of the table to associate with this query.
array$optionsArray of database options.

References ConditionInterface\condition(), and Database\RETURN_AFFECTED.

Here is the call graph for this function:

Member Function Documentation

__toString ( )

Implements PHP magic __toString method to convert the query to a string.

Returns
string The prepared statement.

References ConditionInterface\condition().

Here is the call graph for this function:

execute ( )

Executes the DELETE query.

Returns
int The number of rows affected by the delete query.

References ConditionInterface\condition().

Here is the call graph for this function:


The documentation for this class was generated from the following file: