Import data from an array or a CSV file.
public import ( mixed $import_data, boolean $numeric_mode = false, string $format = null ) : array | ||
$import_data | mixed | PHP associative array or CSV input |
$numeric_mode | boolean | Use IDs instead of the name field when matching |
$format | string | Format of import data, options are php or csv |
Résultat | array | IDs of imported items |
/** * Import data / Save multiple rows of data at once * * @see PodsAPI::import * * @param mixed $import_data PHP associative array or CSV input * @param bool $numeric_mode Use IDs instead of the name field when matching * @param string $format Format of import data, options are php or csv * * @return array IDs of imported items * * @since 2.3 */ public function import($import_data, $numeric_mode = false, $format = null) { return $this->api->import($import_data, $numeric_mode, $format); }