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

Namespaces

  • Phramework
    • Database
      • Operations

Classes

  • Create
  • Delete
  • Update

Class Update

Update operation for databases

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

Methods summary

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

Update database records

Update database records

Parameters

$id
$keysValues
$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

Todo

Add $additionalAttributes
phramework/database API documentation generated by ApiGen