[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Schema/ -> ChangeItem.php (summary)

Joomla! Content Management System

Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 249 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  __construct()
  getInstance()
  check()
  fix()

Functions
Functions that are not part of a class:

__construct($db, $file, $query)   X-Ref
Constructor: builds check query and message from $updateQuery

param: DatabaseDriver  $db     Database connector object
param: string          $file   Full path name of the sql file
param: string          $query  Text of the sql query (one line of the file)

getInstance($db, $file, $query)   X-Ref
Returns a reference to the ChangeItem object.

param: DatabaseDriver  $db     Database connector object
param: string          $file   Full path name of the sql file
param: string          $query  Text of the sql query (one line of the file)
return: ChangeItem  instance based on the database driver

check()   X-Ref
Runs the check query and checks that 1 row is returned

return: integer  1 if success, -1 if skipped, -2 if check failed

fix()   X-Ref
Runs the update query to apply the change to the database

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer