[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/schema/ -> schema.module (summary)

(no description)

File Size: 903 lines (30 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

  schema_phpprint()
  schema_phpprint_table()
  schema_phpprint_column()
  schema_phpprint_key()
  schema_unprefix_table()
  schema_invoke()
  schema_engine_invoke()
  schema_engine_type()
  schema_schema_type()
  schema_compare_schemas()
  schema_compare_table()
  schema_init()
  schema_require()
  schema_perm()
  schema_menu()
  _schema_process_description()
  schema_describe()
  schema_report()
  schema_inspect()
  schema_sql()
  schema_show()
  schema_settings()

Functions
Functions that are not part of a class:

schema_phpprint($schema)   X-Ref
Builds a pretty ASCII-formatted version of a $schema array.

This is nothing more than a specialized variation of var_dump and
similar functions and is used only as a convenience to generate the
PHP for existing database tables (to bootstrap support for modules
that previously used CREATE TABLE explicitly) and for debugging.

schema_phpprint_table($name, $table)   X-Ref
No description

schema_phpprint_column($col, $multiline=FALSE)   X-Ref
No description

schema_phpprint_key($keys)   X-Ref
No description

schema_unprefix_table($name)   X-Ref
No description

schema_invoke($op)   X-Ref
No description

schema_engine_invoke($engine, $op)   X-Ref
No description

schema_engine_type($col, $table, $field, $engine = NULL)   X-Ref
Converts a column's Schema type into an engine-specific data type.


schema_schema_type($type, $table, $field, $engine = NULL)   X-Ref
Convert an engine-specific data type into a Schema type.


schema_compare_schemas($ref, $inspect = NULL)   X-Ref
Compares two complete schemas.

param: $ref is considered the reference copy
param: $inspect is compared against it.  If $inspect is NULL, a

schema_compare_table($ref, $inspect = NULL)   X-Ref
Compares a reference specification (such as one returned by a
module's hook_schema) to an inspected specification from the
database.

param: $inspect if not provided, the database is inspected.

schema_init()   X-Ref
Implementation of hook_init().
Perform setup tasks.


schema_require()   X-Ref
No description

schema_perm()   X-Ref
Implementation of hook_perm().


schema_menu()   X-Ref
Implementation of hook_menu().
Define menu items and page callbacks.
admin/build/schema           calls local task(default): schema_report()
admin/build/schema/report    calls local task: schema_report()
admin/build/schema/describe  calls local task: schema_describe()
admin/build/schema/inspect   calls local task: schema_inspect()
admin/build/schema/sql       calls local task: schema_sql()
admin/build/schema/show      calls local task: schema_show()


_schema_process_description($desc)   X-Ref
No description

schema_describe()   X-Ref
"Describe" menu callback.


schema_report()   X-Ref
"Report" menu callback.
This function just massages the data returned by
schema_compare_schemas() into HTML.


schema_inspect()   X-Ref
"Inspect" menu callback.


schema_sql($engine = NULL)   X-Ref
"SQL" menu callback.


schema_show()   X-Ref
"Show" menu callback.
Displays drupal schema as php code, so you can reuse it
as you need.


schema_settings()   X-Ref
No description



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7