[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/libraries/cms/schema/ -> changeitem.php (summary)

Abstract class for database schema change

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 203 lines (5 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, $updateQuery)   X-Ref
Constructor: builds check query and message from $updateQuery

param: JDatabase  $db
param: string     $file   full path name of the sql file
param: string     $query   text of the sql query (one line of the file)
param: string     $checkQuery

getInstance($db, $file, $query)   X-Ref
Returns an instance of the correct schemachangeitem for the $db

param: JDatabase $db
param: string    $file   full path name of the sql file
param: string    $query  text of the sql query (one line of the file)
return: JSchemaChangeItem for the $db driver

check()   X-Ref
Runs the check query and checks that 1 row is returned
If yes, return true, otherwise return false

return: boolean  true on success, false otherwise

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




Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1