public function MigrateJSONReader::__construct in Migrate 7.2
Initialize the members.
Parameters
$json_url: URL or filespec of the JSON file to be parsed.
$id_field: Name of the field within each object containing its unique ID.
File
- plugins/
sources/ json.inc, line 222 - Support for migration from JSON sources.
Class
- MigrateJSONReader
- An iterator over a JSON file. As is, this assumes that the file is structured as an array of objects,…
Code
public function __construct($json_url, $id_field) {
$this->url = $json_url;
$this->idField = $id_field;
}