chkout_replicate_borrowers.php File Reference

Go to the source code of this file.

Functions

 handle_pear_error ($error_obj)
 sync_borrower ($in_id, $sysid)
 sync_attrib ($in_id, $in_attrib, $sysid)

Variables

 $s_srcBorrowerTable = $argv[1]
 $s_srcAttribTable = $argv[2]
 $s_destBorrowerTable = $argv[3]
 $s_destAttribTable = $argv[4]
 $dsn = "mysql://username:password@localhost/fastframe"
 $o_srcDb = DB::connect($dsn)
 $o_destDb = DB::connect($dsn)
 $s_sql = "SELECT v,borrower_id FROM $s_destAttribTable WHERE k='sysstudentid'"
 $a_borrowers = $o_destDb->getOne($s_sql,null, DB_FETCHMODE_ASSOC)
 $tmp = $o_destDb->getAll($s_sql)


Function Documentation

handle_pear_error error_obj  ) 
 

Definition at line 19 of file chkout_replicate_borrowers.php.

sync_attrib in_id,
in_attrib,
sysid
 

Definition at line 87 of file chkout_replicate_borrowers.php.

References $o_destDb, $o_srcDb, $s_destAttribTable, $s_sql, $s_srcAttribTable, and print.

sync_borrower in_id,
sysid
 

Definition at line 63 of file chkout_replicate_borrowers.php.

References $o_destDb, $o_srcDb, $s_destBorrowerTable, $s_sql, $s_srcBorrowerTable, and print.


Variable Documentation

$a_borrowers = $o_destDb->getOne($s_sql,null, DB_FETCHMODE_ASSOC)
 

Definition at line 35 of file chkout_replicate_borrowers.php.

Referenced by FF_Model_Borrower::getDataToExport(), FF_Action_LoanReturnSummary::renderSummaryTable(), FF_Model_Demo::setBorrowersToAddFromString(), sync_attrib(), and sync_borrower().

$dsn = "mysql://username:password@localhost/fastframe"
 

Definition at line 27 of file chkout_replicate_borrowers.php.

$o_destDb = DB::connect($dsn)
 

Definition at line 31 of file chkout_replicate_borrowers.php.

$o_srcDb = DB::connect($dsn)
 

Definition at line 28 of file chkout_replicate_borrowers.php.

$s_destAttribTable = $argv[4]
 

Definition at line 15 of file chkout_replicate_borrowers.php.

Referenced by sync_attrib().

$s_destBorrowerTable = $argv[3]
 

Definition at line 14 of file chkout_replicate_borrowers.php.

Referenced by sync_borrower().

$s_sql = "SELECT v,borrower_id FROM $s_destAttribTable WHERE k='sysstudentid'"
 

Definition at line 34 of file chkout_replicate_borrowers.php.

$s_srcAttribTable = $argv[2]
 

Definition at line 13 of file chkout_replicate_borrowers.php.

Referenced by sync_attrib().

$s_srcBorrowerTable = $argv[1]
 

Replicates a set of shared borrowers into individual checkout setups which need to share some borrowers, but not all. Outputs a series of SQL commands that can be dumped into a file and directly read in by mysql for fast updates.

Author:
Greg Gilbert <ggilbert@treke.net>

Definition at line 12 of file chkout_replicate_borrowers.php.

Referenced by sync_borrower().

$tmp = $o_destDb->getAll($s_sql)
 

Definition at line 37 of file chkout_replicate_borrowers.php.

Referenced by FF_Rule_email::execute(), FF_DataAccess_Spotlight_mysql::getImageData(), FF_DataAccess_CustomField_mysql::remove(), FF_Action_TicketSummary::renderSummaryTable(), and FF_Model_TicketHistory::save().


Generated on Fri Jun 23 11:38:19 2006 for FastFrame by  doxygen 1.4.4