Example #1
0
 /**
  * Clean the database
  * @param  Editor $editor Calling Editor instance
  * @param  Field $field   Host field
  * @internal
  */
 public function dbCleanExec($editor, $field)
 {
     // Database and file system clean up BEFORE adding the new file to
     // the db, otherwise it will be removed immediately
     $tables = $editor->table();
     $this->_dbClean($editor->db(), $tables[0], $field->dbField());
 }