function DB_storage::DB_storage in Flickr API 5
Constructor
Parameters
$table string the name of the database table:
$keycolumn mixed string with name of key column, or array of: strings if the table has a primary key of more than one column
$dbh object database connection object:
$validator mixed function or method used to validate: each new value, called with three parameters: the name of the field/column that is changing, a reference to the new value and a reference to this object
File
- phpFlickr/
PEAR/ DB/ storage.php, line 96
Class
- DB_storage
- Provides an object interface to a table row
Code
function DB_storage($table, $keycolumn, &$dbh, $validator = null) {
$this
->PEAR('DB_Error');
$this->_table = $table;
$this->_keycolumn = $keycolumn;
$this->_dbh = $dbh;
$this->_readonly = false;
$this->_validator = $validator;
}