Class jDbSchema

Description
  • abstract:

Located in /db/jDbSchema.class.php (line 19)


	
			
Direct descendents
Variable Summary
Method Summary
jDbSchema __construct (jDbConnection $conn)
jDbTable createTable ( $name,  $columns,  $primaryKey, [ $attributes = array()])
void dropTable (jDbTable $table)
jDbTable getTable ( $name)
array getTables ()
void normalizeColumn (jDbColumn $col)
jDbTable _createTable ( $name,  $columns,  $primaryKey, [ $attributes = array()])
void _dropTable ( $name)
void _getTables ()
Variables
jDbConnection $conn (line 24)
  • access: protected
mixed $tables = null (line 74)
  • access: protected
Methods
Constructor __construct (line 26)
jDbSchema __construct (jDbConnection $conn)
createTable (line 41)

create the given table

  • return: the object corresponding to the created table
jDbTable createTable ( $name,  $columns,  $primaryKey, [ $attributes = array()])
  • $name
  • $columns
  • $primaryKey
  • $attributes

Redefined in descendants as:
dropTable (line 87)
  • access: public
void dropTable (jDbTable $table)
getConn (line 33)
  • access: public
jDbConnection getConn ()
getTable (line 60)

load informations of the given table

  • return: ready to make change
jDbTable getTable ( $name)
  • $name

Redefined in descendants as:
getTables (line 79)
  • return: of jDbTable
  • access: public
array getTables ()

Redefined in descendants as:
normalizeColumn (line 144)

fill correctly some properties of the column, depending of its type

and other properties

void normalizeColumn (jDbColumn $col)
_createTable (line 102)

create the given table into the database

  • return: the object corresponding to the created table
  • abstract:
  • access: protected
jDbTable _createTable ( $name,  $columns,  $primaryKey, [ $attributes = array()])
  • $name
  • $columns
  • $primaryKey
  • $attributes

Redefined in descendants as:
_dropTable (line 106)
  • access: protected
void _dropTable ( $name)
  • $name
_getTables (line 104)
  • abstract:
  • access: protected
void _getTables ()

Redefined in descendants as:

Documentation generated on Wed, 04 Jan 2017 22:53:53 +0100 by phpDocumentor 1.4.3