public function set($table, $data, $tablePrefix = null)
{
is_null($tablePrefix) && ($tablePrefix = $this->tablePrefix);
$tableName = $tablePrefix . $table;
if (is_array($data)) {
$s = $this->arrToCondition($data, $table);
$stmt = $this->prepare("INSERT INTO {$tableName} SET {$s}", $this->wlink);
$this->execute($stmt);
$this->setCacheVer($tableName);
return $this->insertId();
} else {
return false;
}
}