pronto/bin/load_schemas.php File Reference

Go to the source code of this file.

Functions

foreach($files as $f) do_sql ($sql)
 do_multi_sql ($insql, $fname)
 get_next_chunk ($insql, $fname)
 get_open_char ($str, $pos)
 get_close_char ($str, $pos, $ochar)

Variables

 if (!file_exists('profiles/cmdline.php'))
 $GLOBALS ['db'] = Registry::get('pronto:db:main')
 $args = $_SERVER['argv']
 $opts = getopt("t:m:ca")
if(empty($opts)) $files = array()
if(isset($opts['t'])) else if(isset($opts['c']))
else if(isset($opts['m']))
else if(isset($opts['a'])) if(empty($files)) 
$db = & Registry::get('pronto:db:main')

Function Documentation

do_multi_sql ( insql,
fname 
)

The following functions were hijacked from PHPMiniAdmin, found here: http://phpminiadmin.sourceforge.net

Definition at line 94 of file load_schemas.php.

References $GLOBALS, do_sql(), get_close_char(), get_next_chunk(), and get_open_char().

foreach ($files as $f) do_sql ( sql  ) 

Definition at line 80 of file load_schemas.php.

References $db.

Referenced by do_multi_sql().

get_close_char ( str,
pos,
ochar 
)

Definition at line 172 of file load_schemas.php.

Referenced by do_multi_sql().

get_next_chunk ( insql,
fname 
)

Definition at line 147 of file load_schemas.php.

Referenced by do_multi_sql().

get_open_char ( str,
pos 
)

Definition at line 164 of file load_schemas.php.

Referenced by do_multi_sql().


Variable Documentation

$args = $_SERVER['argv']

Definition at line 17 of file load_schemas.php.

if (isset($opts['t'])) else if (isset($opts['c'])) else if (isset($opts['m'])) else if (isset($opts['a'])) if (empty($files)) $db = & Registry::get('pronto:db:main')

Definition at line 70 of file load_schemas.php.

if (empty($opts)) $files = array()

Definition at line 36 of file load_schemas.php.

Referenced by Factory::build_class_map(), and Factory::newobj().

$GLOBALS['db'] = Registry::get('pronto:db:main')
$opts = getopt("t:m:ca")

Definition at line 20 of file load_schemas.php.

if(!file_exists('profiles/cmdline.php'))

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: Create new tables in the database from the schema files.

Definition at line 11 of file load_schemas.php.


Generated on Wed Jan 13 09:21:02 2010 for Pronto Framework by  doxygen 1.6.1