[Vtigercrm-commits] [vtiger-commits] r4055 - /vtigercrm/branches/4.2/include/database/PearDatabase.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 6 05:15:00 EST 2006
Author: mfedyk
Date: Mon Mar 6 03:14:58 2006
New Revision: 4055
Log:
add wrapper for adodb UpdateBlobFile
Modified:
vtigercrm/branches/4.2/include/database/PearDatabase.php
Modified: vtigercrm/branches/4.2/include/database/PearDatabase.php
==============================================================================
--- vtigercrm/branches/4.2/include/database/PearDatabase.php (original)
+++ vtigercrm/branches/4.2/include/database/PearDatabase.php Mon Mar 6 03:14:58 2006
@@ -251,6 +251,15 @@
$this->checkConnection();
$result = $this->database->UpdateBlob($tablename, $colname, $data, $id);
$this->println("updateBlob t=".$tablename." c=".$colname." id=".$id." status=".$result);
+ return $result;
+ }
+
+ function updateBlobFile($tablename, $colname, $id, $filename)
+ {
+ $this->println("updateBlobFile t=".$tablename." c=".$colname." id=".$id." f=".$filename);
+ $this->checkConnection();
+ $result = $this->database->UpdateBlobFile($tablename, $colname, $filename, $id);
+ $this->println("updateBlobFile t=".$tablename." c=".$colname." id=".$id." f=".$filename." status=".$result);
return $result;
}
More information about the vtigercrm-commits
mailing list