Class mysqldump

Description

Class used for creating MySQL Database dumps.

Was introduced for easier transport of single Communities.

  • version: $Id: mysqldump.php,v 1.7 2006/11/26 22:04:25 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
mysqldump mysqldump ( $host,  $user,  $password, [ $create = true], [ $drop = true], [ $comment = true])
void addReplacer ( $replacer,  $value)
boolean backup ( $table, [ $excludeTables = array()])
void doEscape ( $tbl)
String getDump ()
void setReplacer ( $replacer)
void setShowComments ( $s)
void setShowCreateTable ( $s)
void setShowDropTable ( $s)
void setTablePreString ( $preString)
void setUseReplacer ( $useReplacer)
Methods
Constructor mysqldump (line 90)
mysqldump mysqldump ( $host,  $user,  $password, [ $create = true], [ $drop = true], [ $comment = true])
  • $host
  • $user
  • $password
  • $create
  • $drop
  • $comment
addReplacer (line 118)
void addReplacer ( $replacer,  $value)
  • $replacer
  • $value
backup (line 231)
  • return: whether the Database select worked or not
boolean backup ( $table, [ $excludeTables = array()])
  • $table
  • $excludeTables
doEscape (line 345)
void doEscape ( $tbl)
  • $tbl
getDump (line 151)

Returns only usefull data if

was called before!

  • return: the Full Dump.
String getDump ()
setReplacer (line 112)
void setReplacer ( $replacer)
  • $replacer
setShowComments (line 126)
void setShowComments ( $s)
  • $s
setShowCreateTable (line 134)
void setShowCreateTable ( $s)
  • $s
setShowDropTable (line 130)
void setShowDropTable ( $s)
  • $s
setTablePreString (line 122)
void setTablePreString ( $preString)
  • $preString
setUseReplacer (line 106)
void setUseReplacer ( $useReplacer)
  • $useReplacer

Documentation generated by phpDocumentor 1.3.1