phramework/database
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Database
      • Operations

Classes

  • Create
  • Delete
  • Update

Class Delete

Delete operation for databases

Namespace: Phramework\Database\Operations
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
Located at Operations/Delete.php

Methods summary

public static integer
# delete( string|integer $id, array|object $additionalAttributes, string|array $table, string $idAttribute = 'id', null|integer $limit = 1 )

Delete database records

Delete database records

Parameters

$id
Id value
$additionalAttributes
Additional attributes to use in WHERE $idAttribute
$table
Table's name
$idAttribute

[Optional] Id attribute

$limit

[Optional] Limit clause, when null there is not limit.

Returns

integer
Return number of affected records
phramework/database API documentation generated by ApiGen