* @package tao */ interface tao_models_classes_import_ImportHandler { /** * Returns a textual description of the import format * * @return string */ public function getLabel(); /** * Returns a form in order to prepare the import * if the import is from a file, the form should include the file element * * @return tao_helpers_form_Form */ public function getForm(); /** * Starts the import based on the form * * @param core_kernel_classes_Class $class * @param tao_helpers_form_Form $form * @param string|null $userId owner of the resource */ public function import($class, $form, $userId = null); }