FALSE, // Allow the user to provide the path on the Tripal server for the file. 'file_local' => FALSE, // Allow the user to provide a remote URL for the file. 'file_remote' => FALSE, ]; /** * Indicates if the file must be provided. An example when it may not be * necessary to require that the user provide a file for uploading if the * loader keeps track of previous files and makes those available for * selection. */ public static $file_required = FALSE; /** * The array of arguments used for this loader. Each argument should * be a separate array containing a machine_name, name, and description * keys. This information is used to build the help text for the loader. */ public static $argument_list = []; /** * Indicates how many files are allowed to be uploaded. By default this is * set to allow only one file. Change to any positive number. A value of * zero indicates an unlimited number of uploaded files are allowed. */ public static $cardinality = 0; /** * Be default, all loaders are automatically added to the Admin > * Tripal > Data Loaders menu. However, if this loader should be * made available via a different menu path, then set it here. If the * value is empty then the path will be the default. */ public static $menu_path = ''; /** * If your importer requires more flexibility and advance features than * the TripalImporter provides you can indicate a callback function. If set, * the callback will be used to provide the importer interface to the * end-user. However, because this bypasses the class infrastructure the * run() function will also not be available and your importer must be * fully self-sufficient outside of this class. The benefit for using a * TripalImporter despite your loader being self-sufficient is that Tripal * will treat your loader like all others providing a consistent location * in the menu and set of permissions. */ public static $callback = 'tripal_pub_importers_list'; /** * The name of the module that provides the callback function. */ public static $callback_module = 'tripal_chado'; /** * An include path for the callback function. Use a relative path within * this scope of this module * (e.g. includes/loaders/tripal_chado_pub_importers). */ public static $callback_path = 'includes/loaders/tripal_chado.pub_importers.inc'; }